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 <bradleyb@fuzziesquirrel.com>
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 SchemaHandler(RouteHandler):
verbs = ['GET']
rules = '<path:path>/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 InstanceHandler(RouteHandler):
verbs = ['GET', 'PUT', 'DELETE']
rules = '<path:path>'
- 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(