haskell-servant/servant
View on GitHubclient streaming + http redirect result into runtime exception
Open
#1,091 opened on Nov 28, 2018
enhancementhelp wanted
Repository metrics
- Stars
- (1,953 stars)
- PR merge metrics
- (Avg merge 5h 49m) (2 merged PRs in 30d)
Description
If an http endpoint returns a redirect (for example http -> https upgrade), streaming client errors out:
HasClient @StreamBody
CallStack (from HasCallStack):
error, called at src/Servant/Client/Core/Internal/HasClient.hs:550:44 in servant-client-core-0.15-KKVc3oxuLh47HhicA3CWtB:Servant.Client.Core.Internal.HasClient