This commit is contained in:
Yusur 2025-08-10 10:55:47 +02:00
parent ac66f3632c
commit 7041c19b57

View file

@ -87,7 +87,7 @@ class SassAsyncMiddleware(_MiddlewareFactory):
'type': 'http.response.start', 'type': 'http.response.start',
'status': self.error_status, 'status': self.error_status,
'headers': [ 'headers': [
('Content-Type', 'text/css; charset=utf-8'), (b'Content-Type', b'text/css; charset=utf-8'),
] ]
}) })
await send({ await send({
@ -124,7 +124,7 @@ class SassAsyncMiddleware(_MiddlewareFactory):
'type': 'http.response.start', 'type': 'http.response.start',
'status': 200, 'status': 200,
'headers': [ 'headers': [
('Content-Type', 'text/css; charset=utf-8'), (b'Content-Type', b'text/css; charset=utf-8'),
] ]
}) })
async for chunk in _read_file(os.path.join(package_dir, result)): async for chunk in _read_file(os.path.join(package_dir, result)):