Skip to content

Commit 3067b4d

Browse files
author
Giorgio Salluzzo
committed
Fix for #13.
1 parent 775fa00 commit 3067b4d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

mocket/mockhttp.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,8 @@ def can_handle(self, data):
9393
return True
9494
uri = urlsplit(path)
9595
kw = dict(keep_blank_values=True)
96-
return uri.path == self.path and parse_qs(uri.query, **kw) == parse_qs(self.query, **kw)
96+
ch = uri.path == self.path and parse_qs(uri.query, **kw) == parse_qs(self.query, **kw) and method == self.method
97+
return ch
9798

9899
@staticmethod
99100
def _parse_requestline(line):

0 commit comments

Comments
 (0)