Skip to content
This repository was archived by the owner on Oct 24, 2025. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions sassutils/wsgi.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class SassMiddleware(object):
"""

def __init__(self, app, manifests, package_dir={},
error_status='500 Internal Server Error'):
error_status='200 OK'):
if not callable(app):
raise TypeError('app must be a WSGI-compliant callable object, '
'not ' + repr(app))
Expand Down Expand Up @@ -143,7 +143,9 @@ def __call__(self, environ, start_response):
b'/*\n', str(e).encode('utf-8'), b'\n*/\n\n',
b'body:before { content: ',
self.quote_css_string(str(e)).encode('utf-8'),
b'; color: maroon; background-color: white; }'
b'; color: maroon; background-color: white',
b'; white-space: pre-wrap; display: block; ',
b'font-family: "Courier New", monospace; user-select: text; }'
]

def read_file(path):
Expand Down