]> granicus.if.org Git - curl/commit
- Bug report #1025986. When following a Location: with a custom Host: header
authorDaniel Stenberg <daniel@haxx.se>
Fri, 10 Sep 2004 20:58:51 +0000 (20:58 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 10 Sep 2004 20:58:51 +0000 (20:58 +0000)
commitb8b56248bddc646bf8d262dc9c5b45ce68a1ef08
tree582ff2a2e1bded2a6750c18b3dd8c45dc060f293
parent33929117f9ffff56f978a75233326969b803659a
- Bug report #1025986. When following a Location: with a custom Host: header
  replacement, curl only replaced the Host: header on the initial request
  and didn't replace it on the following ones. This resulted in requests with
  two Host: headers.

  Now, curl checks if the location is on the same host as the initial request
  and then continues to replace the Host: header. And when it moves to another
  host, it doesn't replace the Host: header but it also doesn't make the
  second Host: header get used in the request.

  This change is verified by the two new test cases 184 and 185.
CHANGES
lib/http.c
lib/url.c
lib/urldata.h
tests/data/Makefile.am
tests/data/test184 [new file with mode: 0644]
tests/data/test185 [new file with mode: 0644]