Skip to content

Commit

Permalink
specify text encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
programmer-ke committed Mar 15, 2024
1 parent 29da55e commit cc0c282
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def main():
print(f"message received: {chunks}")
# write to socket
response_text = "HTTP/1.1 200 OK\r\n\r\n"
client_socket.sendall(bytes(response_text))
client_socket.sendall(bytes(response_text, "utf-8"))
# close socket - necessary?


Expand Down

0 comments on commit cc0c282

Please sign in to comment.