Refactor config to set DEBUG based on environment variable for better configuration management.
Remove debug print statement from hooks to clean up response handling.
This commit is contained in:
parent
19ce49cc55
commit
2b6d94c766
3 changed files with 2 additions and 3 deletions
|
|
@ -6,7 +6,6 @@ from . import main
|
|||
|
||||
@main.after_request
|
||||
def prettify_or_minify_html_response(response):
|
||||
print(app.debug, response.content_type)
|
||||
if response.content_type.startswith("text/html"):
|
||||
try:
|
||||
html = response.get_data(as_text=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue