[Checkins] SVN: grokcore.rest/trunk/src/grokcore/rest/ftests/test_grok_functional.py Set the content-length of the request.
Jan-Jaap Driessen
jdriessen at thehealthagency.com
Fri Mar 4 18:03:49 EST 2011
Log message for revision 120751:
Set the content-length of the request.
Changed:
U grokcore.rest/trunk/src/grokcore/rest/ftests/test_grok_functional.py
-=-
Modified: grokcore.rest/trunk/src/grokcore/rest/ftests/test_grok_functional.py
===================================================================
--- grokcore.rest/trunk/src/grokcore/rest/ftests/test_grok_functional.py 2011-03-04 23:03:10 UTC (rev 120750)
+++ grokcore.rest/trunk/src/grokcore/rest/ftests/test_grok_functional.py 2011-03-04 23:03:49 UTC (rev 120751)
@@ -28,6 +28,7 @@
for key, value in kw.items():
request_string += '%s: %s\n' % (key, value)
if data is not None:
+ request_string += 'Content-Length:%s\n' % len(data)
request_string += '\r\n'
request_string += data
return http(request_string, handle_errors=False)
More information about the checkins
mailing list