Consistent spacing in servant-client
This commit is contained in:
parent
4ecbf2f1b8
commit
5bf9e62244
1 changed files with 5 additions and 6 deletions
|
@ -19,11 +19,10 @@ import Servant.Common.Req (addHeader, Req)
|
|||
class AuthenticateRequest a where
|
||||
authReq :: a -> Req -> Req
|
||||
|
||||
|
||||
instance AuthenticateRequest (BasicAuth realm) where
|
||||
authReq (BasicAuth user pass) req =
|
||||
let authText = decodeUtf8 ("Basic " <> encode (user <> ":" <> pass)) in
|
||||
addHeader "Authorization" authText req
|
||||
let authText = decodeUtf8 ("Basic " <> encode (user <> ":" <> pass))
|
||||
in addHeader "Authorization" authText req
|
||||
|
||||
instance AuthenticateRequest JWTAuth where
|
||||
authReq (JWTAuth token) req =
|
||||
|
|
Loading…
Reference in a new issue