Skip to content
This repository has been archived by the owner on Sep 14, 2023. It is now read-only.

Commit

Permalink
Set the content-length of the request.
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaapdriessen committed Mar 4, 2011
1 parent 2ba88dc commit 1c9678c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/grokcore/rest/ftests/test_grok_functional.py
Expand Up @@ -28,6 +28,7 @@ def http_call(method, path, data=None, **kw):
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)
Expand Down

0 comments on commit 1c9678c

Please sign in to comment.