mercurial/hgweb/hgweb_mod.py
changeset 34740 b2601c5977a4
parent 34704 c51380879054
child 34806 afd7fd950f6e
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