You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The PwnedPasswords API will return gzipped or brotli encoded content if asked for it.
Currently the library will accept any headers passed through. If a user were to pass headers: { "Accept-Encoding" => "br" } the library would faithfully request the encoded response and then fail to do anything with it.
Thoughts:
No need to require any extra gems
can use Zlib to reflate gzip responses
if someone requests brotli, expect for them to have included a brotli supporting gem
The text was updated successfully, but these errors were encountered:
The PwnedPasswords API will return gzipped or brotli encoded content if asked for it.
Currently the library will accept any headers passed through. If a user were to pass
headers: { "Accept-Encoding" => "br" }
the library would faithfully request the encoded response and then fail to do anything with it.Thoughts:
The text was updated successfully, but these errors were encountered: