Mercurial > bitten > bitten-test
changeset 891:60d0807334ec
Set 'Content-Length' header on keep-alive requests. Fixes #667. Thanks eblot.
author | osimons |
---|---|
date | Sat, 05 Mar 2011 02:15:03 +0000 |
parents | 9ac91d38198c |
children | ed77e3e1c43f |
files | bitten/slave.py |
diffstat | 1 files changed, 2 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/slave.py +++ b/bitten/slave.py @@ -146,9 +146,9 @@ body = None shutdown = False headers = { - 'Content-Type': 'application/x-bitten+xml' + 'Content-Type': 'application/x-bitten+xml', + 'Content-Length': '0' } - log.debug('Sending %s request to %r', method, url) req = SaneHTTPRequest(method, url, body, headers or {}) try: