Skip to content

Commit

Permalink
server: throw 401 exception for accesskey mismatch/notfound fix, #67
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshkky committed Jul 10, 2018
1 parent b0e3cbd commit d7ae846
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/src-lib/Hasura/Server/App.hs
Original file line number Diff line number Diff line change
Expand Up @@ -224,8 +224,7 @@ fetchHeaders req mReqAccessKey authMode =
when (reqKey /= key) accessKeyAuthErr
return headers

accessKeyAuthErr = throw400 AccessDenied $
"access keys don't match or not found"
accessKeyAuthErr = throw401 "access keys don't match or not found"

headersTxt hdrsRaw =
flip map hdrsRaw $ \(hdrName, hdrVal) ->
Expand Down

0 comments on commit d7ae846

Please sign in to comment.