chore(load): take steps to prevent multiple auth headers

This commit is contained in:
Gregor Kleen 2020-05-29 09:56:04 +02:00
parent b0c55b9ae9
commit 3be16c48c9

View File

@ -325,7 +325,7 @@ newLoadSession = do
let withToken = case loadToken of
Nothing -> id
Just (Jwt bs) -> (:) (hAuthorization, "Bearer " <> bs)
Just (Jwt bs) -> (:) (hAuthorization, "Bearer " <> bs) . filter ((/= hAuthorization) . fst)
liftIO . Session.newSessionControl (Just mempty) $ tlsManagerSettings