##// END OF EJS Templates
keepalive: headers are native strings, mark them as such...
Augie Fackler -
r36309:19a04ca9 default
parent child Browse files
Show More
@@ -324,11 +324,11 b' class KeepAliveHandler(object):'
324 h.putrequest(
324 h.putrequest(
325 req.get_method(), urllibcompat.getselector(req),
325 req.get_method(), urllibcompat.getselector(req),
326 **pycompat.strkwargs(skipheaders))
326 **pycompat.strkwargs(skipheaders))
327 if 'content-type' not in headers:
327 if r'content-type' not in headers:
328 h.putheader('Content-type',
328 h.putheader(r'Content-type',
329 'application/x-www-form-urlencoded')
329 r'application/x-www-form-urlencoded')
330 if 'content-length' not in headers:
330 if r'content-length' not in headers:
331 h.putheader('Content-length', '%d' % len(data))
331 h.putheader(r'Content-length', r'%d' % len(data))
332 else:
332 else:
333 h.putrequest(
333 h.putrequest(
334 req.get_method(), urllibcompat.getselector(req),
334 req.get_method(), urllibcompat.getselector(req),
General Comments 0
You need to be logged in to leave comments. Login now