Skip to content

Commit

Permalink
Added unquote call to file path to avoid mismatch when directory has …
Browse files Browse the repository at this point in the history
…a url quote
  • Loading branch information
ezturner committed Aug 11, 2017
1 parent 950b0a3 commit 6801e9b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion restclients_core/util/mock.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,4 +174,5 @@ def attempt_open_query_permutations(url, orig_file_path, is_header_file):


def _compare_file_name(orig_file_path, directory, filename):
return len(unquote(orig_file_path)) - len(directory) == len(filename)
return (len(unquote(orig_file_path)) - len(unquote(directory)) ==
len(filename))

0 comments on commit 6801e9b

Please sign in to comment.