We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8d632f7 commit 961b172Copy full SHA for 961b172
mock_servers/simple_endpoint.py
@@ -147,6 +147,8 @@ def formatResponsePayload(self):
147
formatted_response = str.encode(formatted_response)
148
if self.path.split('/')[-1].find('.') is not -1:
149
file_name = self.path.split('/')[-1]
150
+ if file_name.find('?') is not -1:
151
+ file_name = file_name.split('?')[0]
152
extention = file_name.split('.')[-1]
153
files = glob('./resources/*.{}'.format(extention))
154
if not len(files) == 0:
0 commit comments