From c5e385f77a8f8e2db2ed18e91a4079e43750e8d2 Mon Sep 17 00:00:00 2001 From: Bernardo Damele Date: Fri, 15 Oct 2010 10:28:34 +0000 Subject: [PATCH] More layout adjustments --- lib/parse/cmdline.py | 2 +- lib/request/methodrequest.py | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/lib/parse/cmdline.py b/lib/parse/cmdline.py index 65363e7ed..5d25c9ea3 100644 --- a/lib/parse/cmdline.py +++ b/lib/parse/cmdline.py @@ -105,7 +105,7 @@ def cmdLineParser(): help="Use a HTTP proxy to connect to the target url") request.add_option("--proxy-cred", dest="pCred", - help="Proxy authentication credentials " + help="HTTP proxy authentication credentials " "(name:password)") request.add_option("--ignore-proxy", dest="ignoreProxy", action="store_true", diff --git a/lib/request/methodrequest.py b/lib/request/methodrequest.py index ef34fce5b..f68a85b86 100644 --- a/lib/request/methodrequest.py +++ b/lib/request/methodrequest.py @@ -11,8 +11,12 @@ import urllib2 class MethodRequest(urllib2.Request): - ''' Used to create HEAD/PUT/DELETE/... requests with urllib2 ''' + ''' + Used to create HEAD/PUT/DELETE/... requests with urllib2 + ''' + def set_method(self, method): self.method = method.upper() + def get_method(self): return getattr(self, 'method', urllib2.Request.get_method(self))