Fix typing error

This commit is contained in:
0880
2026-01-20 22:19:09 +03:30
parent a7f0001659
commit e679865e50

View File

@@ -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: