<div dir="ltr">Hello, y'all.<div><br></div><div>I'm using HTTP Basic Auth in my API. While calling cowboy_req:parse_header(<<"authorization>>", ... with an _invalid_ Authorization header such as "Authorization: Basic Test1" I get an error 500 back and an error log message on the server.</div>
<div><br></div><div>1. Is this the expected behavior? [if I understand correctly, my request is going through authorization(UserPass, Type = <<"basic">>) and this has no check for the string being correctly encoded]</div>
<div><br></div><div>2. what would be the best way to guard against this "error"?</div><div><br></div><div>Thanks.</div><div><br></div><div>- Paulo F. Oliveira</div></div>