1
0
Fork 0

fixed bug when server doesn't send back any cookies

master
Bob Carroll 2013-05-01 17:14:33 -07:00
parent c35dbe2989
commit 1b5c9b4c93
2 changed files with 5 additions and 3 deletions

View File

@ -72,7 +72,9 @@ class Krb5DAV(davlib.DAV):
def __store_cookies(self, response): def __store_cookies(self, response):
cookiestr = response.getheader('set-cookie') cookiestr = response.getheader('set-cookie')
self.__cookies.load(cookiestr)
if not cookiestr is None:
self.__cookies.load(cookiestr)
def __request_authenticate(self, method, url, body, extra_hdrs): def __request_authenticate(self, method, url, body, extra_hdrs):
self.__probe_mechanisms() self.__probe_mechanisms()

View File

@ -4,12 +4,12 @@ from distutils.core import setup
setup( setup(
name='WebDAV-Kerberos', name='WebDAV-Kerberos',
version='0.1.0', version='0.2.0',
description='Kerberised WebDAV client library', description='Kerberised WebDAV client library',
author='Bob Carroll', author='Bob Carroll',
author_email='bob.carroll@alum.rit.edu', author_email='bob.carroll@alum.rit.edu',
url='http://github.com/rcarz/WebDAV-Kerberos', url='http://github.com/rcarz/WebDAV-Kerberos',
py_modules=['krb5dav'], py_modules=['krb5dav'],
requires=['Python_WebDAV_Library', 'PyKerberos'], install_requires=['Python_WebDAV_Library', 'kerberos'],
) )