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

Process hangs if request follows a redirection #24

Open
ozanmakes opened this issue Feb 22, 2016 · 0 comments
Open

Process hangs if request follows a redirection #24

ozanmakes opened this issue Feb 22, 2016 · 0 comments

Comments

@ozanmakes
Copy link

var XMLHttpRequest = require('xhr2');

var req = new XMLHttpRequest();
req.addEventListener("load", function () {
  console.log(this.responseText);
});
req.open("GET", "http://news.ycombinator.com");
req.send();

This waits about 45 seconds after printing. Getting https://news.ycombinator.com works fine.

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

Successfully merging a pull request may close this issue.

1 participant