Mercurial > hg
comparison mercurial/error.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 | f4522df38c65 |
children | 50c922c1b514 |
comparison
equal
deleted
inserted
replaced
18696:d23f61b6617f | 18697:4921b5c2aeed |
---|