Skip to content
This repository has been archived by the owner on Dec 29, 2023. It is now read-only.

Commit

Permalink
fix string encoding for complex requests
Browse files Browse the repository at this point in the history
  • Loading branch information
akvlad authored Nov 6, 2023
1 parent 04ff15c commit 901cdef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def play():
if query is None:
query = b""
else:
query = bytes(query)
query = query.encode('utf-8')
if body is not None:
query = query + body
query = query + "\n".encode('utf-8') + body

if not query:
return "Error: no query parameter provided", 400
Expand Down

0 comments on commit 901cdef

Please sign in to comment.