comparison mercurial/hgweb/hgweb_mod.py @ 34740:b2601c5977a4

hgweb: more "http headers are native strs" cleanup Differential Revision: https://phab.mercurial-scm.org/D1108
author Augie Fackler <augie@google.com>
date Sun, 15 Oct 2017 00:38:33 -0400
parents c51380879054
children afd7fd950f6e
comparison
equal deleted inserted replaced
34739:b880cc11da5d 34740:b2601c5977a4
376 (req.env.get('HTTP_EXPECT', 376 (req.env.get('HTTP_EXPECT',
377 '').lower() != '100-continue') or 377 '').lower() != '100-continue') or
378 req.env.get('X-HgHttp2', '')): 378 req.env.get('X-HgHttp2', '')):
379 req.drain() 379 req.drain()
380 else: 380 else:
381 req.headers.append(('Connection', 'Close')) 381 req.headers.append((r'Connection', r'Close'))
382 req.respond(inst, protocol.HGTYPE, 382 req.respond(inst, protocol.HGTYPE,
383 body='0\n%s\n' % inst) 383 body='0\n%s\n' % inst)
384 return '' 384 return ''
385 385
386 # translate user-visible url structure to internal structure 386 # translate user-visible url structure to internal structure