ayon-core/pype/vendor/pico/exceptions.py
2019-01-02 17:39:17 +01:00

9 lines
337 B
Python

import werkzeug.exceptions
from werkzeug.exceptions import *
class Unauthorized(werkzeug.exceptions.Unauthorized):
""" Overridden to return WWW-Authenticate challenge header """
def get_headers(self, environ):
return [('Content-Type', 'text/html'),
('WWW-Authenticate', 'Basic realm="Login required"')]