superagent icon indicating copy to clipboard operation
superagent copied to clipboard

redirect with 300 response(statuscode: 300)

Open haocs opened this issue 10 years ago • 3 comments

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?

haocs avatar May 23 '16 22:05 haocs

Yes, because 300 is not a redirect, but application-specific list of available choices to choose from manually.

kornelski avatar May 23 '16 23:05 kornelski

@pornel - I see, thank you for the clarification. Is there a way to config super agent to follow 300 redirect?

haocs avatar May 24 '16 17:05 haocs

No, sorry, there isn't. You'll have to read the location header and make another request yourself.

kornelski avatar May 24 '16 17:05 kornelski