Nis Jorgensen filed bug report #1338648
(http://curl.haxx.se/bug/view.cgi?id=1338648) which really is more of a feature request, but anyway. It pointed out that --max-redirs did not allow it to be set to 0, which then would return an error code on the first Location: found. Based on Nis' patch, now libcurl supports CURLOPT_MAXREDIRS set to 0, or -1 for infinity. Added test case 274 to verify.
Showing
- CHANGES 7 additions, 0 deletionsCHANGES
- docs/curl.1 2 additions, 1 deletiondocs/curl.1
- docs/libcurl/curl_easy_setopt.3 4 additions, 2 deletionsdocs/libcurl/curl_easy_setopt.3
- lib/transfer.c 1 addition, 1 deletionlib/transfer.c
- lib/url.c 1 addition, 1 deletionlib/url.c
- lib/urldata.h 2 additions, 1 deletionlib/urldata.h
- src/main.c 2 additions, 5 deletionssrc/main.c
- tests/data/Makefile.am 3 additions, 1 deletiontests/data/Makefile.am
- tests/data/test274 50 additions, 0 deletionstests/data/test274
Loading
Please register or sign in to comment