Permalink
Browse files

the headers were broken when they are referenced further down in the …

…file. fixed that.
  • Loading branch information...
1 parent eb21dad commit 5ea3c4de5e8710cd47ff54e7ae095f9858aaf77e @deanmalmgren committed Apr 27, 2013
Showing with 2 additions and 1 deletion.
  1. +2 −1 beeswithmachineguns/bees.py
@@ -355,6 +355,7 @@ def attack(url, n, c, **options):
Test the root url of this site.
"""
username, key_name, zone, instance_ids = _read_server_list()
+ headers = options.get('headers', '')
csv_filename = options.get("csv_filename", '')
if csv_filename:
@@ -409,7 +410,7 @@ def attack(url, n, c, **options):
'num_requests': requests_per_instance,
'username': username,
'key_name': key_name,
- 'headers': options.get('headers', ''),
+ 'headers': headers,
'post_file': options.get('post_file'),
'mime_type': options.get('mime_type', ''),
})

0 comments on commit 5ea3c4d

Please sign in to comment.