forked from mirrors/bookwyrm
Fixes status code variable in http response
This commit is contained in:
parent
718744a92d
commit
3a7717e22f
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class CreateStatus(View):
|
|||
return HttpResponseBadRequest()
|
||||
if not form.is_valid():
|
||||
if is_api_request(request):
|
||||
return HttpResponse(status_code=500)
|
||||
return HttpResponse(status=500)
|
||||
return redirect(request.headers.get("Referer", "/"))
|
||||
|
||||
status = form.save(commit=False)
|
||||
|
|
Loading…
Reference in a new issue