]> git.ipfire.org Git - thirdparty/curl.git/commit
httpauth: make multi-request auth work with custom port
authorDaniel Stenberg <daniel@haxx.se>
Fri, 1 Jan 2021 22:41:21 +0000 (23:41 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Sat, 2 Jan 2021 22:40:47 +0000 (23:40 +0100)
commit648712eec1eedb05965b9b4d6dd457bda5d70481
treee696618bd90aa6ccbc743f88b72e760045fc8c56
parent725ec470e2ca5b1eb01ffee84d432653a8070722
httpauth: make multi-request auth work with custom port

When doing HTTP authentication and a port number set with CURLOPT_PORT,
the code would previously have the URL's port number override as if it
had been a redirect to an absolute URL.

Added test 1568 to verify.

Reported-by: UrsusArctos on github
Fixes #6397
Closes #6400
lib/multi.c
lib/transfer.c
lib/transfer.h
lib/url.c
tests/data/Makefile.inc
tests/data/test1568 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib1568.c [new file with mode: 0644]