sapling/mercurial/hgweb
Augie Fackler cc479af38a httppeer: add support for httppostargs when we're sending a file
This is probably only used in the 'unbundle' command, but the code
ended up being cleaner to make it generic and treat *all* httppostargs
with a non-args request body as though they were file-like in
nature. It also means we get test coverage more or less for free. A
previous version of this change didn't use io.BytesIO, and it was a
lot more complicated.

This also fixes a server-side bug, so anyone using httppostargs should
update all of their servers to this revision or later *before* this
gets to their clients, otherwise servers will hang trying to over-read
the POST body.

Differential Revision: https://phab.mercurial-scm.org/D231
2017-07-26 17:58:19 -04:00
..
__init__.py server: move service factory from hgweb 2016-10-15 14:09:36 +09:00
common.py hgweb: use context manager for file I/O 2017-03-31 22:30:38 -07:00
hgweb_mod.py hgweb: use ui._unset to prevent a warning in configitems 2017-07-03 13:04:35 +02:00
hgwebdir_mod.py hgweb: use ui._unset to prevent a warning in configitems 2017-07-03 13:04:35 +02:00
protocol.py httppeer: add support for httppostargs when we're sending a file 2017-07-26 17:58:19 -04:00
request.py hgweb: use absolute_import 2015-10-31 22:07:40 +09:00
server.py py3: replace os.name with pycompat.osname (part 1 of 2) 2016-12-19 00:16:52 +05:30
webcommands.py revset: pass repo when passing ui 2017-07-15 15:51:57 -07:00
webutil.py mdiff: add a hunkinrange helper function 2017-04-01 12:24:59 +02:00
wsgicgi.py py3: replace os.environ with encoding.environ (part 3 of 5) 2016-12-18 01:54:36 +05:30