Skip to content

Commit

Permalink
HACK: Do not print headers
Browse files Browse the repository at this point in the history
For some reason, they're actually not relayed as
headers, and started to appear in the response
body, which breaks JSON parsing.

Fixes #22.
  • Loading branch information
urbanecm committed Apr 18, 2021
1 parent 37ae9c0 commit b6028d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions feedback.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def getActorId(userId):
return data[0][0]

#Print header
print('Content-type: application/json')
#print('Content-type: application/json')

# Fetch params
labs = False
Expand Down Expand Up @@ -172,5 +172,5 @@ def getActorId(userId):
if 'deletedUploads' in fetch:
response['deletedUploads'] = deletedUploads(actorid)

print()
#print()
print(jsonify(response))

0 comments on commit b6028d5

Please sign in to comment.