Skip to content

Commit

Permalink
Merge pull request #27 from corbinbs/master
Browse files Browse the repository at this point in the history
Support Basic HTTP Authorization for https requests
  • Loading branch information
heyman committed May 14, 2012
2 parents 656f869 + 23ea27d commit f29fb95
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions locust/clients.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@ def http_request(self, request):
request.add_header("Authorization", "Basic %s" % base64string)
return request

#Do the same thing for https requests
https_request = http_request

class HttpResponse(object):
"""
An instance of HttpResponse is returned by HttpBrowser's get and post functions.
Expand Down

0 comments on commit f29fb95

Please sign in to comment.