Sfoglia il codice sorgente

A couple of fixes.

pull/24/head
Ben Kurtovic 12 anni fa
parent
commit
0768aa43aa
2 ha cambiato i file con 3 aggiunte e 3 eliminazioni
  1. +2
    -2
      toolserver/cookies.py
  2. +1
    -1
      toolserver/settings.py

+ 2
- 2
toolserver/cookies.py Vedi File

@@ -9,9 +9,9 @@ class _CookieManager(BaseCookie):
def __init__(self, environ):
self._path = path.split(environ["PATH_INFO"])[0]
try:
self.load(environ["HTTP_COOKIE"])
super(_CookieManager, self).__init__(environ["HTTP_COOKIE"])
except AttributeError:
pass
super(_CookieManager, self).__init__()

def value_decode(self, value):
try:


+ 1
- 1
toolserver/settings.py Vedi File

@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-

from ..cookies import parse_cookies, set_cookie
from ..cookies import parse_cookies, set_cookie, delete_cookie
from ..misc import get_bot, Query
from ..sites import get_sites



Caricamento…
Annulla
Salva