mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-05 20:10:33 +00:00
* Tests/Integration/config.py.in: New config parameter: webCalendarURL
* Tests/Integration/webdavlib.py(HTTPPOST,HTTPGET): Allow cookies in post and get requests. * Tests/Integration/test-ui-posts.py: New test class Currently contains only one test case which exercises addWebCalendar * SoObjects/Appointments/GNUmakefile: use -Wl,--no-as-needed when linking. Fixes #1863 Monotone-Parent: 080d411d52272c158ce60ea0bab6ba8eb9d9aa2a Monotone-Revision: 8ce46d6fa7b1d1a9d12069cee3ba796d99d668d2 Monotone-Author: jraby@inverse.ca Monotone-Date: 2012-07-18T20:22:54
This commit is contained in:
@@ -136,6 +136,14 @@ class HTTPSimpleQuery:
|
||||
|
||||
class HTTPGET(HTTPSimpleQuery):
|
||||
method = "GET"
|
||||
cookie = None
|
||||
|
||||
def prepare_headers (self):
|
||||
headers = HTTPSimpleQuery.prepare_headers(self)
|
||||
if self.cookie:
|
||||
headers["Cookie"] = self.cookie
|
||||
return headers
|
||||
|
||||
|
||||
class HTTPOPTIONS(HTTPSimpleQuery):
|
||||
method = "OPTIONS"
|
||||
@@ -168,6 +176,15 @@ class HTTPPUT(HTTPQuery):
|
||||
|
||||
class HTTPPOST(HTTPPUT):
|
||||
method = "POST"
|
||||
cookie = None
|
||||
|
||||
def prepare_headers (self):
|
||||
headers = HTTPPUT.prepare_headers(self)
|
||||
if self.cookie:
|
||||
headers["Cookie"] = self.cookie
|
||||
return headers
|
||||
|
||||
|
||||
|
||||
class WebDAVQuery(HTTPQuery):
|
||||
method = None
|
||||
|
||||
Reference in New Issue
Block a user