-
Notifications
You must be signed in to change notification settings - Fork 252
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Explicitly raise an error when server returns http 403 and dont continue
Previously if the server returned a 403, eventsource would begin a retry loop to connect to the server over and over. This loop will start before a client can attach to the 'error' event because eventsource connects right away in the constructor. This prevents client code from closing the eventsource connection. This commit addresses this issue and fails fast instead of allowing eventsource to enter a retry loop when a server returns a 403.
- Loading branch information
Scott Moak
committed
Feb 5, 2013
1 parent
ebdd9bd
commit 7e49554
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters