Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proxy 301 Redirect Problem #25

Open
talkquazi opened this issue Oct 4, 2017 · 1 comment
Open

Proxy 301 Redirect Problem #25

talkquazi opened this issue Oct 4, 2017 · 1 comment

Comments

@talkquazi
Copy link

talkquazi commented Oct 4, 2017

There is a bug where 301 forwarders are ignored in some situations:

Using TinyProxy the newest superagent and superagent-proxy via an express route which is the pipe(res) output.

  superagent
    .get('https://brandsmartusa.com/samsung/211987/65+class+smart+curved+led+4k+uhd+tv+with+wi+fi.htm')
    .proxy('http://127.0.0.1:8888/')
    .redirects(10)
    .pipe(res);

The result is:

Moved Permanently

The document has moved here.
Apache Server at www.brandsmartusa.com Port 443

Removing the proxy call the url loads as expected. I have tested this with multiple proxys all yielding the same result on some websites such as brandsmartusa which appear to be using apache reverse-proxies on their backend.

Note: Calling the same url and proxy using the request npm module loads the page as expected.

@mweichert
Copy link

I have the same issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants