Reading Wasabi Code I found this line that calls this line , which calls this line , so I think you can solve it with a brutal but effective persistent override:
HTTPI::Response::SuccessfulResponseCodes = HTTPI::Response::SuccessfulResponseCodes.to_a << 302
You can safely ignore the warning of constant redefinition (you can use Kernel.silence_warnings{ ... } ).
In any case, I suggest you open the httpi question; I think this should be the expected behavior.
source share