diff --git a/NEWS.md b/NEWS.md index b67404c7..a1f4b181 100644 --- a/NEWS.md +++ b/NEWS.md @@ -1,5 +1,17 @@ # NEWS +1.25.0 - 2025-07-24 +------------------- + +** IMPORTANT CHANGE ** + +- change: `insecure_basic_auth` now defaults to `true` instead of `false` + + This restores backward compatibility with pre-1.24.0 behavior where basic auth + was allowed over HTTP connections. If you need strict HTTPS-only basic auth: + - Set globally: `application:set_env(hackney, insecure_basic_auth, false)` + - Or per-request: `{insecure_basic_auth, false}` in options + 1.24.1 - 2025-05-26 ------------------- @@ -18,12 +30,6 @@ - fix: controlling_process error handling in happy eyeballs and connection pool return - improvement: update GitHub Actions to ubuntu-22.04 and bump certifi/mimerl dependencies -** Breaking Change ** - -The new `insecure_basic_auth` application variable defaults to `false` for security. -If your application relies on insecure basic auth over HTTP, you must explicitly set -`application:set_env(hackney, insecure_basic_auth, true)` to maintain previous behavior. - 1.23.0 - 2025-02-25 ------------------- diff --git a/src/hackney.app.src b/src/hackney.app.src index f1c1be7e..5277304a 100644 --- a/src/hackney.app.src +++ b/src/hackney.app.src @@ -4,7 +4,7 @@ {application, hackney, [ {description, "simple HTTP client"}, - {vsn, "1.24.1"}, + {vsn, "1.25.0"}, {registered, [hackney_pool]}, {applications, [kernel, stdlib, diff --git a/src/hackney.erl b/src/hackney.erl index 4a799b9a..5b9da6c6 100644 --- a/src/hackney.erl +++ b/src/hackney.erl @@ -239,9 +239,9 @@ request(Method, URL, Headers, Body) -> %% redirection even on POST %%