bin/git-http-backend-verify: include bundle filename hint
commit941399795ec51345fa24c0887fe8b4b0321ccdac
authorKyle J. McKay <mackyle@gmail.com>
Tue, 9 Jun 2020 04:30:36 +0000 (8 21:30 -0700)
committerKyle J. McKay <mackyle@gmail.com>
Tue, 9 Jun 2020 04:30:36 +0000 (8 21:30 -0700)
treedb1f2f3f4fda416253774572553020abf1de85d6
parent4c3dec64f3a940acbfdf80ed7f2442edb25b9843
bin/git-http-backend-verify: include bundle filename hint

Add a "Content-Disposition: attachment; filename=<filename.bundle>"
header to hint to the client what the intended filename should be.

Now when using curl's -J option, something like this:

    curl -JLO https://repo.or.cz/girocco.git/clone.bundle

will end up fetching the current "girocco-XXXXXXXX.bundle" file
rather than fetching a file called, unhelpfully, "clone.bundle".

Signed-off-by: Kyle J. McKay <mackyle@gmail.com>
bin/git-http-backend-verify