mirror of
https://github.com/frappe/gunicorn.git
synced 2026-01-14 11:09:11 +08:00
don't return headers here.
This commit is contained in:
parent
708639c8f0
commit
3a2673d52e
@ -34,9 +34,7 @@ class Parser(object):
|
|||||||
if parsing isn't done. headers dict is updated
|
if parsing isn't done. headers dict is updated
|
||||||
with new headers.
|
with new headers.
|
||||||
"""
|
"""
|
||||||
if self.headers:
|
|
||||||
return self.headers
|
|
||||||
|
|
||||||
ld = len("\r\n\r\n")
|
ld = len("\r\n\r\n")
|
||||||
i = buf.find("\r\n\r\n")
|
i = buf.find("\r\n\r\n")
|
||||||
if i != -1:
|
if i != -1:
|
||||||
|
|||||||
@ -68,8 +68,7 @@ class Command(BaseCommand):
|
|||||||
|
|
||||||
# django.core.management.base forces the locale to en-us.
|
# django.core.management.base forces the locale to en-us.
|
||||||
translation.activate(settings.LANGUAGE_CODE)
|
translation.activate(settings.LANGUAGE_CODE)
|
||||||
|
|
||||||
|
|
||||||
try:
|
try:
|
||||||
handler = AdminMediaHandler(WSGIHandler(), admin_media_path)
|
handler = AdminMediaHandler(WSGIHandler(), admin_media_path)
|
||||||
arbiter = Arbiter(conf.address, conf.workers, handler,
|
arbiter = Arbiter(conf.address, conf.workers, handler,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user