]> granicus.if.org Git - curl/commit
FILE: fix CURLOPT_NOBODY and CURLOPT_HEADER output
authorDaniel Stenberg <daniel@haxx.se>
Thu, 4 Oct 2018 21:53:32 +0000 (23:53 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 8 Oct 2018 06:35:40 +0000 (08:35 +0200)
commite50a2002bd450a4800a165d2874ed79c95b33a07
treecb43e2ed03f938df63105fdc222cf9da027cfcc8
parentb55e85d4ec53eead7e99efa34f78a981bee32994
FILE: fix CURLOPT_NOBODY and CURLOPT_HEADER output

Now FILE transfers send headers to the header callback like HTTP and
other protocols. Also made curl_easy_getinfo(...CURLINFO_PROTOCOL...)
work for FILE in the callbacks.

Makes "curl -i file://.." and "curl -I file://.." work like before
again. Applied the bold header logic to them too.

Regression from c1c2762 (7.61.0)

Reported-by: Shaun Jackman
Fixes #3083
Closes #3101
33 files changed:
lib/file.c
lib/getinfo.c
lib/url.c
src/tool_cb_hdr.c
tests/data/test1016
tests/data/test1017
tests/data/test1018
tests/data/test1019
tests/data/test1020
tests/data/test1029
tests/data/test1146
tests/data/test1220
tests/data/test200
tests/data/test2000
tests/data/test2001
tests/data/test2002
tests/data/test2003
tests/data/test2004
tests/data/test2006
tests/data/test2007
tests/data/test2008
tests/data/test2009
tests/data/test2010
tests/data/test202
tests/data/test203
tests/data/test204
tests/data/test205
tests/data/test2070
tests/data/test2071
tests/data/test2072
tests/data/test210
tests/data/test231
tests/data/test288