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

Wrong status sent on timeout #61

Open
osuushi opened this issue Dec 18, 2017 · 0 comments
Open

Wrong status sent on timeout #61

osuushi opened this issue Dec 18, 2017 · 0 comments

Comments

@osuushi
Copy link

osuushi commented Dec 18, 2017

This code sends a 405 on timeout:

timeout = setTimeout(function() {
  httpRequest.abort();
  defer.reject(new Response(405, {}, 'timeout exceeded'));
}, request.timeout);

405 is "Method Not Allowed". Pretty sure this is supposed to be 504 "Gateway Timeout"

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

1 participant