Skip to content

Commit

Permalink
back to python format syntax for compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
xmendez committed Dec 29, 2018
1 parent cd927ed commit ba01f16
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/wfuzz/fuzzobjects.py
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ def update_from_raw_http(self, raw, scheme, raw_response=None):
def to_cache_key(self):
key = self._request.urlWithoutVariables

dicc = {f'g{key}': True for key in self.params.get.keys()}
dicc.update({f'p{key}': True for key in self.params.post.keys()})
dicc = {'g{}'.format(key): True for key in self.params.get.keys()}
dicc.update({'p{}'.format(key): True for key in self.params.post.keys()})

# take URL parameters into consideration
url_params = list(dicc.keys())
Expand Down
2 changes: 1 addition & 1 deletion tests/test_reqresp.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ def test_allvars(self):

default_headers = dict([
('Content-Type', 'application/x-www-form-urlencoded'),
('User-Agent', f'Wfuzz/{wfuzz_version}'),
('User-Agent', 'Wfuzz/{}'.format(wfuzz_version)),
('Host', 'www.wfuzz.org')
])

Expand Down

0 comments on commit ba01f16

Please sign in to comment.