]> git.ipfire.org Git - thirdparty/curl.git/commit
http: return error for a second Location: header
authorDaniel Stenberg <daniel@haxx.se>
Sun, 19 Oct 2025 08:59:38 +0000 (10:59 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 20 Oct 2025 07:35:23 +0000 (09:35 +0200)
commit9596c4a2587a9e512ea46fbd7b6fc1ecb878590f
treed89a446b88532c0e5425a14ec2c9642d3d8545e6
parentcbd7823fd163c20e6b010977972dc7f7f180c709
http: return error for a second Location: header

Unless it is identical to the previous one.

Follow-up to dbcaa0065719acc0383

Adjusted test 580, added test 772 and 773

Fixes #19130
Reported-by: Jakub Stasiak
Closes #19134
lib/http.c
tests/data/Makefile.am
tests/data/test580
tests/data/test772 [new file with mode: 0644]
tests/data/test773 [new file with mode: 0644]