From 529029b544aaf30b614c09dd5bfc17c1048edf3d Mon Sep 17 00:00:00 2001 From: Brad Bishop Date: Mon, 10 Jul 2017 16:46:01 -0400 Subject: Revert "Set content-type to routes that had none set" This reverts commit 0dc67226dd38d5e603c9abc9f443809010ae85ee. No longer needed after 944cd04. Resolves: openbmc/openbmc#1932 Change-Id: I0f0a3fe2462cfd287ea7d7692fa47de685d595ea Signed-off-by: Brad Bishop --- module/obmc/wsgi/apps/rest_dbus.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/module/obmc/wsgi/apps/rest_dbus.py b/module/obmc/wsgi/apps/rest_dbus.py index ab02705..41538bc 100644 --- a/module/obmc/wsgi/apps/rest_dbus.py +++ b/module/obmc/wsgi/apps/rest_dbus.py @@ -440,11 +440,10 @@ class PropertyHandler(RouteHandler): class SchemaHandler(RouteHandler): verbs = ['GET'] rules = '/schema' - content_type = 'application/json' def __init__(self, app, bus): super(SchemaHandler, self).__init__( - app, bus, self.verbs, self.rules, self.content_type) + app, bus, self.verbs, self.rules) def find(self, path): return self.try_mapper_call( @@ -471,12 +470,11 @@ class SchemaHandler(RouteHandler): class InstanceHandler(RouteHandler): verbs = ['GET', 'PUT', 'DELETE'] rules = '' - content_type = 'application/json' request_type = dict def __init__(self, app, bus): super(InstanceHandler, self).__init__( - app, bus, self.verbs, self.rules, self.content_type) + app, bus, self.verbs, self.rules) def find(self, path, callback=None): return {path: self.try_mapper_call( -- cgit v1.2.1