Skip to content

Commit

Permalink
Escape URL in ab shell command
Browse files Browse the repository at this point in the history
  • Loading branch information
Suneel Vana committed Mar 20, 2012
1 parent b2775ff commit b3877ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion beeswithmachineguns/bees.py
Expand Up @@ -186,7 +186,7 @@ def _attack(params):

print 'Bee %i is firing his machine gun. Bang bang!' % params['i']

stdin, stdout, stderr = client.exec_command('ab -r -n %(num_requests)s -c %(concurrent_requests)s -C "sessionid=NotARealSessionID" %(url)s' % params)
stdin, stdout, stderr = client.exec_command('ab -r -n %(num_requests)s -c %(concurrent_requests)s -C "sessionid=NotARealSessionID" "%(url)s"' % params)

response = {}

Expand Down

0 comments on commit b3877ce

Please sign in to comment.