Permalink
Browse files

adds connection:keep-alive header to produce.py

  • Loading branch information...
1 parent f26a0e1 commit ffff38429181e8d984cbb30caa68103dbf57f4c5 @barberdt barberdt committed Dec 2, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 produce.py
View
1 produce.py
@@ -27,6 +27,7 @@ def produce(hostname, api_key, swarm_id, resource_id, wrap):
conn.putrequest("POST", sel)
conn.putheader("x-bugswarmapikey", api_key)
conn.putheader("transfer-encoding", "chunked")
+ conn.putheader("connection", "keep-alive")
conn.endheaders()
#Sleep required to allow the swarm server time to respond with header

0 comments on commit ffff384

Please sign in to comment.