]> granicus.if.org Git - curl/commit
curl -J: make it work even without http:// scheme on URL
authorJay Satiro <raysatiro@yahoo.com>
Fri, 29 Apr 2016 13:24:10 +0000 (15:24 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 29 Apr 2016 13:24:10 +0000 (15:24 +0200)
commit0dc4d8e42e44224b00a028b467749eede8f08a6e
tree125ad6e7f68c0104b7627c2c2fe0e47eff91bc1b
parent9dbcab3a0c3f2e22f68081653f8e5f5e596a555b
curl -J: make it work even without http:// scheme on URL

It does open up a miniscule risk that one of the other protocols that
libcurl could use would send back a Content-Disposition header and then
curl would act on it even if not HTTP.

A future mitigation for this risk would be to allow the callback to ask
libcurl which protocol is being used.

Verified with test 1312

Closes #760
src/tool_operate.c
tests/data/test1312