Skip to content
Browse files

Add 401 to the list of failure responses.

  • Loading branch information...
1 parent 6df1298 commit 2929e95a5639fc916a4bab99a3ca3cc2f7de4450 @Raynes committed Apr 29, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/tentacles/core.clj
View
2 src/tentacles/core.clj
@@ -33,7 +33,7 @@
If 400, 422, 404, 204, or 500, return the original response with the body parsed
as json. Otherwise, parse and return the body."
[resp]
- (if (#{400 204 422 404 500} (:status resp))
+ (if (#{400 401 204 422 404 500} (:status resp))
(update-in resp [:body] parse-json)
(parse-json (:body resp))))

0 comments on commit 2929e95

Please sign in to comment.
Something went wrong with that request. Please try again.