Skip to content

Commit

Permalink
Default to CURLOPT_UNRESTRICTED_AUTH = 0, resolves #260 (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
tanho63 authored and jeroen committed Jan 28, 2024
1 parent e65f0f5 commit edf52b9
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions NEWS
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
5.2.1
- Fix an issue where curl_fetch_stream() might not return all bytes received
by the C layer if the server closed the connection mid-response.
- No longer enable CURLOPT_UNRESTRICTED_AUTH by default

5.2.0
- The CURL_CA_BUNDLE envvar is now also used on non-Windows.
Expand Down
1 change: 0 additions & 1 deletion src/handle.c
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,6 @@ static void set_handle_defaults(reference *ref){

/* allow all authentication methods */
assert(curl_easy_setopt(handle, CURLOPT_HTTPAUTH, CURLAUTH_ANY));
assert(curl_easy_setopt(handle, CURLOPT_UNRESTRICTED_AUTH, 1L));
assert(curl_easy_setopt(handle, CURLOPT_PROXYAUTH, CURLAUTH_ANY));

/* enables HTTP2 on HTTPS (match behavior of curl cmd util) */
Expand Down

0 comments on commit edf52b9

Please sign in to comment.