diff --git a/elasticsearch_utils.py b/elasticsearch_utils.py index c94c70b..97088e6 100644 --- a/elasticsearch_utils.py +++ b/elasticsearch_utils.py @@ -57,11 +57,13 @@ def run_apache_bench(self, path, requests='100', concurrency='10', postfile=''): url = self.get_request_url(path) command = [self.ab_command, '-n', requests, '-c', concurrency, - '-p', postfile, '-T', 'application/json', url] + '-p', postfile, '-T', 'application/json'] for k, v in self.http_headers.items(): command += ['-H', "{0}: {1}".format(k, v)] + command += [url] + self.run_command(command) def make_path(self):