chore(load): take steps to prevent multiple auth headers
This commit is contained in:
parent
b0c55b9ae9
commit
3be16c48c9
@ -325,7 +325,7 @@ newLoadSession = do
|
|||||||
|
|
||||||
let withToken = case loadToken of
|
let withToken = case loadToken of
|
||||||
Nothing -> id
|
Nothing -> id
|
||||||
Just (Jwt bs) -> (:) (hAuthorization, "Bearer " <> bs)
|
Just (Jwt bs) -> (:) (hAuthorization, "Bearer " <> bs) . filter ((/= hAuthorization) . fst)
|
||||||
|
|
||||||
|
|
||||||
liftIO . Session.newSessionControl (Just mempty) $ tlsManagerSettings
|
liftIO . Session.newSessionControl (Just mempty) $ tlsManagerSettings
|
||||||
|
|||||||
Reference in New Issue
Block a user