Fix typing error
This commit is contained in:
@@ -17,7 +17,7 @@ class Response:
|
||||
self.body = body
|
||||
self.no_header = False
|
||||
|
||||
def header(self, app: App) -> bytes:
|
||||
def header(self, app: "App") -> bytes:
|
||||
header = f"HTTP/1.1 {self.status} {http.client.responses.get(self.status, 'Unkown Status Code')}\r\n"
|
||||
header += f"Content-Length: {len(self.body)}\r\n"
|
||||
for h in self.headers:
|
||||
|
||||
Reference in New Issue
Block a user