File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -312,7 +312,7 @@ Copyright (C) 2024-2026 Calibre-Web Automated contributors
312312- zhiyue (1 commits)
313313# Fork Contributors (crocodilestick/calibre-web-automated)
314314
315- - crocodilestick (892 commits)
315+ - crocodilestick (896 commits)
316316- jmarmstrong1207 (73 commits)
317317- demitrix (30 commits)
318318- sirwolfgang (29 commits)
Original file line number Diff line number Diff line change 2222# custom error page
2323
2424def error_http (error ):
25+ headers = {'WWW-Authenticate' : f'Basic realm="{ config .config_calibre_web_title or "calibre-web-automated" } "' } if error .code == 401 else {}
2526 return render_template ('http_error.html' ,
2627 error_code = "Error {0}" .format (error .code ),
2728 error_name = error .name ,
2829 issue = False ,
2930 unconfigured = not config .db_configured ,
3031 instance = config .config_calibre_web_title
31- ), error .code
32+ ), error .code , headers
3233
3334
3435def internal_error (error ):
You can’t perform that action at this time.
0 commit comments