From ea44ef51c050d86fb14a94ea7dc31c6dae7d6d27 Mon Sep 17 00:00:00 2001 From: desbma Date: Tue, 30 Dec 2014 22:55:00 +0100 Subject: [PATCH] Remove superfluous content-type headers when they are set automatically by bottle --- glances/outputs/glances_bottle.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/glances/outputs/glances_bottle.py b/glances/outputs/glances_bottle.py index 35214139..27b56343 100644 --- a/glances/outputs/glances_bottle.py +++ b/glances/outputs/glances_bottle.py @@ -90,7 +90,6 @@ class GlancesBottle(object): def _index(self, refresh_time=None): """Bottle callback for index.html (/) file.""" - response.content_type = 'text/html' # Manage parameter if refresh_time is None: refresh_time = self.args.time @@ -103,13 +102,11 @@ class GlancesBottle(object): def _css(self, filename): """Bottle callback for *.css files.""" - response.content_type = 'text/html' # Return the static file return static_file(filename, root=os.path.join(self.STATIC_PATH, 'css')) def _js(self, filename): """Bottle callback for *.js files.""" - response.content_type = 'text/html' # Return the static file return static_file(filename, root=os.path.join(self.STATIC_PATH, 'js'))