[FIX] openerp.wsgi: typo (unbound variable).

lp bug: https://launchpad.net/bugs/906115 fixed

bzr revid: vmt@openerp.com-20120106092036-8slw0rhgudgphlau
This commit is contained in:
Vo Minh Thu 2012-01-06 10:20:36 +01:00
parent 70445e774b
commit bdbc0686fe
1 changed files with 2 additions and 2 deletions

View File

@ -240,9 +240,9 @@ def return_options(environ, start_response):
# Microsoft specific header, see
# http://www.ibm.com/developerworks/rational/library/2089.html
if 'Microsoft' in environ.get('User-Agent', ''):
option = [('MS-Author-Via', 'DAV')]
options = [('MS-Author-Via', 'DAV')]
else:
option = []
options = []
options += [('DAV', '1 2'), ('Allow', 'GET HEAD PROPFIND OPTIONS REPORT')]
start_response("200 OK", [('Content-Length', str(0))] + options)
return []