Skip to content

Commit

Permalink
http by default (fixes #674)
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Nov 19, 2017
1 parent 30aac64 commit ee74b1a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/wfuzz/fuzzobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
import itertools
import operator

from urlparse import urljoin
from urlparse import urljoin, urlparse
from threading import Lock
from collections import namedtuple
from collections import defaultdict
Expand Down Expand Up @@ -232,6 +232,9 @@ def url(self):

@url.setter
def url(self, u):
if not u.startswith("FUZ") and urlparse(u).scheme == "":
u = "http://" + u

if Facade().sett.get("general","encode_space") == "1":
u = u.replace(" ", "%20")

Expand Down

0 comments on commit ee74b1a

Please sign in to comment.