Use content-type for detecting client

This commit is contained in:
Akira Chiku 2015-11-28 19:25:10 +09:00
parent d6af1b9ae5
commit 9b3fa83730

View File

@ -14,7 +14,7 @@ class ElasticMapReduceResponse(BaseResponse):
@property
def boto3_request(self):
return 'Boto3' in self.headers.get('User-Agent', [])
return 'json' in self.headers.get('Content-Type', [])
def add_job_flow_steps(self):
job_flow_id = self._get_param('JobFlowId')