superagent
superagent copied to clipboard
redirect with 300 response(statuscode: 300)
Currently, super agent supports auto redirect with response [301, 302, 303, 305, 307, 308] but response with 300 is not redirected. Is there a reason not supporting 300?
Yes, because 300 is not a redirect, but application-specific list of available choices to choose from manually.
@pornel - I see, thank you for the clarification. Is there a way to config super agent to follow 300 redirect?
No, sorry, there isn't. You'll have to read the location header and make another request yourself.