Fix the request headers log

This commit is contained in:
Christophe de Vienne 2012-09-23 16:16:27 +02:00
parent db45239e05
commit 740cbea766

View File

@ -135,7 +135,7 @@ class WSRoot(object):
def _select_protocol(self, request):
log.debug("Selecting a protocol for the following request :\n"
"headers: %s\nbody: %s", request.headers,
"headers: %s\nbody: %s", request.headers.items(),
request.content_length and (
request.content_length > 512
and request.body[:512]