Skip to content

Commit 202fc16

Browse files
authored
Merge pull request #1174 from mattbennett/patch-1
content-length header must be a string
2 parents 2bcf0d3 + e0a3e2e commit 202fc16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/eventlet/eventlet-server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def request_received(self, headers, stream_id):
5151
response_headers = (
5252
(':status', '200'),
5353
('content-type', 'application/json'),
54-
('content-length', len(data)),
54+
('content-length', str(len(data))),
5555
('server', 'eventlet-h2'),
5656
)
5757
self.conn.send_headers(stream_id, response_headers)

0 commit comments

Comments
 (0)