D2743: wireprotoserver: access headers through parsed request

2018-03-12 Thread indygreg (Gregory Szorc)
This revision was automatically updated to reflect the committed changes. Closed by commit rHG14f70c44af6c: wireprotoserver: access headers through parsed request (authored by indygreg, committed by ). REPOSITORY rHG Mercurial CHANGES SINCE LAST UPDATE

D2743: wireprotoserver: access headers through parsed request

2018-03-09 Thread indygreg (Gregory Szorc)
indygreg added inline comments. INLINE COMMENTS > durin42 wrote in wireprotoserver.py:97 > Missed one? No. This preserves the behavior since HTTP_CONTENT_LENGTH != CONTENT_LENGTH. I fix this in a later commit by teaching the request object about both keys. REPOSITORY rHG Mercurial REVISION

D2743: wireprotoserver: access headers through parsed request

2018-03-09 Thread durin42 (Augie Fackler)
durin42 added inline comments. INLINE COMMENTS > wireprotoserver.py:97 > else: > length = int(self._wsgireq.env[r'CONTENT_LENGTH']) > # If httppostargs is used, we need to read Content-Length Missed one? REPOSITORY rHG Mercurial REVISION DETAIL

D2743: wireprotoserver: access headers through parsed request

2018-03-08 Thread indygreg (Gregory Szorc)
indygreg created this revision. Herald added a subscriber: mercurial-devel. Herald added a reviewer: hg-reviewers. REVISION SUMMARY Now that we can access headers via the parsed request object, let's do that. Since the new object uses bytes, hyphens, and is case-insensitive, a bit of