fix indent
This commit is contained in:
parent
3ece0d8e05
commit
37b108bf24
1 changed files with 9 additions and 9 deletions
|
|
@ -404,15 +404,15 @@ def offline_reply(start_response, msg=None):
|
|||
|
||||
|
||||
def error_reply(start_response, status, response, extra_headers=None):
|
||||
response = response.encode()
|
||||
headers = [
|
||||
('Content-Length', str(len(response))),
|
||||
('Content-Type', "text/plain"),
|
||||
]
|
||||
if extra_headers:
|
||||
headers.extend(extra_headers)
|
||||
start_response(status, headers)
|
||||
return [response]
|
||||
response = response.encode()
|
||||
headers = [
|
||||
('Content-Length', str(len(response))),
|
||||
('Content-Type', "text/plain"),
|
||||
]
|
||||
if extra_headers:
|
||||
headers.extend(extra_headers)
|
||||
start_response(status, headers)
|
||||
return [response]
|
||||
|
||||
|
||||
def load_config(environ):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue