Fix wrong status 404 when PATCH request didn't change anything (#1272)
This commit is contained in:
committed by
Steve Chávez
parent
87f7e86aa7
commit
553531711b
@@ -64,7 +64,7 @@ pgError authed e =
|
||||
else [jsonType] in
|
||||
responseLBS status hdrs (encodeError e)
|
||||
|
||||
singularityError :: Integer -> Response
|
||||
singularityError :: (Integral a, Show a) => a -> Response
|
||||
singularityError numRows =
|
||||
responseLBS HT.status406
|
||||
[toHeader CTSingularJSON]
|
||||
|
||||
Reference in New Issue
Block a user