Mercurial > hg
comparison mercurial/hook.py @ 18697:4921b5c2aeed
httppeer: improve protocol check
Pre-0.6c hgweb used text/plain for protocol responses. This meant
that a web server could serve a static file and confuse a client into
generating a nasty traceback.
Now we insist that text/plain protocol responses not include a
Content-Length, which older hgweb didn't generate but will typically
be produced for static files.
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 17 Feb 2013 14:34:53 -0600 |
parents | 4f485bd68f1d |
children | aac87f70f38e |
comparison
equal
deleted
inserted
replaced
18696:d23f61b6617f | 18697:4921b5c2aeed |
---|