Skip to content
Browse files

PUT should return a 200 status code instead of 201

  • Loading branch information...
1 parent 5ece13e commit ad1c51edd799b055e4b3e24881dc252ea4846e4c @priteau priteau committed Dec 18, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 phantomweb/api/dev.py
View
4 phantomweb/api/dev.py
@@ -331,7 +331,7 @@ def chef_credentials_resource(request, site):
log.exception("Failed to add credentials for site %s" % site)
return HttpResponseServerError()
- h = HttpResponse(json.dumps(response_dict), status=201, mimetype='application/javascript')
+ h = HttpResponse(json.dumps(response_dict), mimetype='application/javascript')
return h
@@ -493,7 +493,7 @@ def credentials_resource(request, site):
log.exception("Failed to add credentials for site %s" % site)
return HttpResponseServerError()
- h = HttpResponse(json.dumps(response_dict), status=201, mimetype='application/javascript')
+ h = HttpResponse(json.dumps(response_dict), mimetype='application/javascript')
elif request.method == "DELETE":
# Check that credentials exist
clouds = user_obj.get_clouds()

0 comments on commit ad1c51e

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