mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-04-20 23:56:34 -04:00
auth request?
This commit is contained in:
parent
74551f77ab
commit
5349b3c40e
@ -63,8 +63,8 @@ def httpd(request):
|
||||
self.end_headers()
|
||||
self.wfile.write(payload)
|
||||
elif self.path == '/401':
|
||||
self.send_response(401, 'Unauthorized')
|
||||
self.send_header('Connection', 'close')
|
||||
self.send_response(401, 'Authenticate')
|
||||
self.send_header('WWW-Authenticate', 'Basic realm=JSL')
|
||||
self.end_headers()
|
||||
else:
|
||||
super().do_GET()
|
||||
|
Loading…
x
Reference in New Issue
Block a user