comparison requestdumpster/dumpster.py @ 12:d329dfdf6099

dont think i need this
author Jeff Hammel <k0scist@gmail.com>
date Wed, 16 Dec 2015 13:30:49 -0800
parents db2ab581cedb
children 194a66d765ae
comparison
equal deleted inserted replaced
11:cacab5fb2352 12:d329dfdf6099
32 SERVER_PROTOCOL=request.environ['SERVER_PROTOCOL'])] 32 SERVER_PROTOCOL=request.environ['SERVER_PROTOCOL'])]
33 lines.extend(['{0}: {1}'.format(*header) 33 lines.extend(['{0}: {1}'.format(*header)
34 for header in request.headers.items()]) 34 for header in request.headers.items()])
35 lines.append('') 35 lines.append('')
36 lines.append(request.body) 36 lines.append(request.body)
37 body = '\r\n'.join(lines) + '\r\n' 37 body = '\r\n'.join(lines)
38 38
39 response = Response(content_type='text/plain', 39 response = Response(content_type='text/plain',
40 body=body) 40 body=body)
41 return response(environ, start_response) 41 return response(environ, start_response)
42 42