Consistent spacing in servant-client

This commit is contained in:
aaron levin 2015-12-23 00:00:09 +01:00
parent 4ecbf2f1b8
commit 5bf9e62244

View file

@ -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 =