Commit 02448305 authored by Łukasz Nowak's avatar Łukasz Nowak

Protect only __request with requireHeader

parent 522ada7a
...@@ -97,6 +97,8 @@ class GenericPublisher(Implicit): ...@@ -97,6 +97,8 @@ class GenericPublisher(Implicit):
class InstancePublisher(GenericPublisher): class InstancePublisher(GenericPublisher):
"""Instance publisher""" """Instance publisher"""
@requireHeader({'Accept': 'application/json',
'Content-Type': 'application/json'})
def __request(self): def __request(self):
response = self.REQUEST.response response = self.REQUEST.response
self.REQUEST.stdin.seek(0) self.REQUEST.stdin.seek(0)
...@@ -161,8 +163,6 @@ class InstancePublisher(GenericPublisher): ...@@ -161,8 +163,6 @@ class InstancePublisher(GenericPublisher):
return response return response
@responseSupport() @responseSupport()
@requireHeader({'Accept': 'application/json',
'Content-Type': 'application/json'})
def __call__(self): def __call__(self):
"""Instance GET/POST support""" """Instance GET/POST support"""
if self.REQUEST['REQUEST_METHOD'] == 'POST': if self.REQUEST['REQUEST_METHOD'] == 'POST':
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment