]> arthur.barton.de Git - bup.git/commit
Fix HEAD request handling in bup-web
authorWill Rouesnel <w.rouesnel@gmail.com>
Thu, 12 Jun 2014 17:58:49 +0000 (03:58 +1000)
committerRob Browning <rlb@defaultvalue.org>
Thu, 17 Jul 2014 16:18:50 +0000 (11:18 -0500)
commitacdf5ff7aafbaa47d125b4847b10618b99f6c1dd
treee5c6bad0f5eb387b751dd2da73f139e3e4941716
parent38ea9177d34df04dbdba25de5a40e52156afbfc9
Fix HEAD request handling in bup-web

HEAD requests to files did not set self.finished(). This causes problems
with user-agents that expect some type of request since it never closes
(OpenOffice/LibreOffice will notably stall opening files from a URL).

This patch stands alone from WebDAV but also fixes the problem there.

The problem can be demonstrated like this:

    bup web
    curl -I 'http://127.0.0.1:8080/some/file'

Signed-off-by: Will Rouesnel <w.rouesnel@gmail.com>
[rlb@defaultvalue.org: adjust commit message]
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
cmd/web-cmd.py