diff --git a/sassutils/wsgi.py b/sassutils/wsgi.py index 5a349458..3b12283b 100644 --- a/sassutils/wsgi.py +++ b/sassutils/wsgi.py @@ -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)) @@ -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): pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy