Skip to content

Commit c54ec1f

Browse files
author
Antonin ENFRUN
committed
blackd
1 parent f97db45 commit c54ec1f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

adafruit_esp32spi/adafruit_esp32spi_wsgiserver.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def parse_headers(client):
5252
line = str(client.readline(), "utf-8")
5353
if not line:
5454
break
55-
title, content = line.split(':', 1)
55+
title, content = line.split(":", 1)
5656
headers[title.strip().lower()] = content.strip()
5757
return headers
5858

@@ -170,7 +170,10 @@ def _start_response(self, status, response_headers):
170170
ex ("header-name", "header value")
171171
"""
172172
self._response_status = status
173-
self._response_headers = [("Server", "esp32WSGIServer"), ("Connection", "close")] + response_headers
173+
self._response_headers = [
174+
("Server", "esp32WSGIServer"),
175+
("Connection", "close"),
176+
] + response_headers
174177

175178
def _get_environ(self, client):
176179
"""

0 commit comments

Comments
 (0)