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

Commit

Permalink
HTTP: Fix missing ascii encoding in connection send
Browse files Browse the repository at this point in the history
  • Loading branch information
maximeborges authored and icb- committed Sep 4, 2022
1 parent 092f7ae commit c6a7e54
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pypxe/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ def handle_request(self, connection, addr):
response += 'Content-Length: {0}\r\n'.format(os.path.getsize(target))
response += '\r\n'
if method == 'HEAD':
connection.send(response)
connection.send(response.encode('ascii'))
connection.close()
self.logger.debug('Sending message to {0}'.format(repr(addr)))
self.logger.debug('<--BEING MESSAGE-->')
Expand Down

0 comments on commit c6a7e54

Please sign in to comment.