Change http headers from list to dict
This commit is contained in:
parent
b55832df34
commit
b0a8c4d278
4 changed files with 27 additions and 28 deletions
|
@ -44,10 +44,10 @@ class UiRequestPlugin(object):
|
|||
upload_info = upload_nonces[nonce]
|
||||
del upload_nonces[nonce]
|
||||
|
||||
self.sendHeader(200, "text/html", noscript=True, extra_headers=[
|
||||
("Access-Control-Allow-Origin", "null"),
|
||||
("Access-Control-Allow-Credentials", "true")
|
||||
])
|
||||
self.sendHeader(200, "text/html", noscript=True, extra_headers={
|
||||
"Access-Control-Allow-Origin": "null",
|
||||
"Access-Control-Allow-Credentials": "true"
|
||||
})
|
||||
|
||||
self.readMultipartHeaders(self.env['wsgi.input']) # Skip http headers
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue