Skip to content

Commit

Permalink
Fix: Error response was contained inside the HTTP header
Browse files Browse the repository at this point in the history
  • Loading branch information
clashman committed Aug 29, 2023
1 parent a7780cb commit 9295aa7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/imageserver.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ def do_GET(self):
error = "Headers 'Width' and 'Height' required, 'Orientation' optional"
print(error)
self.send_response(412)
self.wfile.write(error.encode())
self.end_headers()
self.wfile.write(error.encode())
return

status, headers, content = self.method(config)
Expand Down

0 comments on commit 9295aa7

Please sign in to comment.