This is an automated email from the ASF dual-hosted git repository. rnewson pushed a commit to branch improve-invalid-auth-header-handling in repository https://gitbox.apache.org/repos/asf/couchdb.git
commit a503a4a2d0ef8eba1b6dc926ccab935cb9829fb8 Author: Robert Newson <[email protected]> AuthorDate: Thu Aug 6 14:15:24 2026 +0100 base64:decode throws error:badarg too Expand what errors when base64 decoding we handle --- src/couch/src/couch_httpd_auth.erl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/couch/src/couch_httpd_auth.erl b/src/couch/src/couch_httpd_auth.erl index ba26ef50c..228c67745 100644 --- a/src/couch/src/couch_httpd_auth.erl +++ b/src/couch/src/couch_httpd_auth.erl @@ -93,7 +93,7 @@ basic_name_pw(Req) -> _ -> nil catch - error:function_clause -> + error:_ -> throw({bad_request, "Authorization header has invalid base64 value"}) end; _ ->
