Comments (2)
I like this. I personally use https://github.com/sindresorhus/got quite heavily and it follows redirects. But it's not 100% identical when browserified and I think there's room for a module that is and sits at a lower level.
from follow-redirects.
Issue #12 needs to be fixed.
Done.
Also related to #12, we currently always perform a GET on redirection, even if the original request was a POST or otherwise. This is the correct response in most situations, but (I believe) not all.
Done.
If we encounter a 3XX status code without a Location header, we do not throw an error, but return the result to the registered callback.
This is in accordance with the HTTP spec, so I wouldn't change.
Make all this configurable.
I opted to make the library more simple instead. It only performs redirects, and this behavior can be switched off by setting the followRedirects
option to false.
We should do all this while still maintaining API compatibility with the core modules (nodes native http and browserify-http, etc).
Check.
Be as lightweight on the client side as possible.
Check.
from follow-redirects.
Related Issues (20)
- 'Debug' module not found error HOT 4
- Does not redirect while Axios works HOT 6
- To use with type module (import) HOT 8
- Configure module exports HOT 1
- destroy() is not properly handled
- socket is destroyed on timeout HOT 3
- esbuild --bundle hangs on debug.js
- CustomError implementation triggers the override mistake HOT 2
- Consider printing a warning when dropping confidential headers before redirecting from HTTP to HTTPS HOT 6
- Does not follow Google RSS news redirects HOT 1
- [Security Report] hostname spoofing via url.parse in follow-redirects HOT 5
- Call Error.captureStackTrace on firefox crash the app HOT 1
- Provide vX, vX.Y tags/branches besides vX.Y.Z with automation HOT 2
- Feature: Support async use of the beforeRedirect option HOT 3
- axios auth does not seem to be propagated on redirect in 1.15.4+ HOT 6
- CVE-2023-26159 Vulnerability with version 1
- Request TIMEOUT ignores the config.timeout value HOT 2
- EMERGENT!!! huntr security reporting page is not working for follow-redirects HOT 2
- ### Describe the bug HOT 1
- Error.captureStackTrace is breaking the entire app on firefox HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from follow-redirects.