forked from snapview/tungstenite-rs
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
snapviewGH-46 Return the response in case of non-101 response from se…
…rver Following redirects inside the lib (snapview#148) has few flows: there is no redirect loop prevention in this case, in case of using the lib in proxy it's impossible to return the upstream response to browser, etc. With this change response is propagated to the lib's user, so it can decide what to do with it in case of redirects: either send it to browser for it to follow redirects or implement redirect following on their side.
- Loading branch information
Showing
2 changed files
with
27 additions
and
17 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