haskell-servant/servant

client streaming + http redirect result into runtime exception

Open

#1,091 创建于 2018年11月28日

在 GitHub 查看
 (7 评论) (0 反应) (0 负责人)Haskell (1,953 star) (422 fork)batch import
enhancementhelp wanted

描述

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                                                                                                                                                     

https://github.com/haskell-servant/servant/blob/master/servant-client-core/src/Servant/Client/Core/Internal/HasClient.hs#L550

贡献者指南