Skip to content

Commit

Permalink
Fix issue qvantel#13 - Handling 202 Response
Browse files Browse the repository at this point in the history
  • Loading branch information
Brad Harmon committed Dec 8, 2017
1 parent 8324c68 commit 6182eb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/jsonapi_client/resourceobject.py
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ def _post_commit(self, status, result, location):
# is received for PATCH, for example).
self.mark_clean()

if status == HttpStatus.ACCEPTED_202:
if status == HttpStatus.CREATED_201:
return self.session.read(result, location, no_cache=True).resource

async def _commit_async(self, url: str= '', meta=None) -> None:
Expand Down

0 comments on commit 6182eb2

Please sign in to comment.