Skip to content

Commit 444e264

Browse files
committed
Check correct HTTP code
1 parent e6badaf commit 444e264

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ def uploadgame():
4242
file = {'file': ("game.zip", f.stream, "application/zip")}
4343
fields = {'title': title, 'description': description, 'author':author}
4444
r = requests.post(app.config["DEVCADE_API_URI"] + "games/", files=file, data=fields, headers={"frontend_api_key":app.config["FRONTEND_API_KEY"]})
45-
if r.status_code == 200:
45+
if r.status_code == 201:
4646
return flask.redirect('/catalog')
4747
return "<p>" + r.text + "</p>"
4848

0 commit comments

Comments
 (0)