py3 fix.
This commit is contained in:
parent
fe2126b727
commit
015e7ea9a2
1 changed files with 2 additions and 1 deletions
|
|
@ -18,7 +18,8 @@ class KinesisResponse(BaseResponse):
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def is_firehose(self):
|
def is_firehose(self):
|
||||||
return self.headers['host'].startswith('firehose')
|
host = self.headers.get('hose', self.headers['Host'])
|
||||||
|
return host.startswith('firehose')
|
||||||
|
|
||||||
def create_stream(self):
|
def create_stream(self):
|
||||||
stream_name = self.parameters.get('StreamName')
|
stream_name = self.parameters.get('StreamName')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue