Merge pull request #154 from vbanos/fix-brozzling-test

Fix test_brozzling::httpd fixture
This commit is contained in:
Noah Levitt 2019-05-16 14:23:04 -07:00 committed by GitHub
commit 8107abd804
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -67,8 +67,8 @@ def httpd(request):
self.send_header('WWW-Authenticate', 'Basic realm=\"Test\"')
self.send_header('Content-type', 'text/html')
self.end_headers()
self.wfile.write(self.headers.getheader('Authorization'))
self.wfile.write('not authenticated')
self.wfile.write(self.headers.get('Authorization', b''))
self.wfile.write(b'not authenticated')
else:
super().do_GET()