Skip to content

Commit 853eedc

Browse files
committed
Fix url_post url encoding
1 parent 11dba03 commit 853eedc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pywb/warcserver/index/indexsource.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,13 +132,14 @@ def _get_api_url(self, params):
132132
if 'matchType' in params:
133133
api_url += '&matchType=' + params.get('matchType')
134134

135+
self.logger.info(api_url)
135136
return api_url
136137

137138
def add_url_post_param(self, params):
138139
# extract POST data value from urlkey and compose url_post parameter
139140
key_str = params['key'].decode('utf-8')
140141
match_post = re.match(self.POSTDATA_MATCH_RX, key_str)
141-
params['url_post'] = params['url']
142+
params['url_post'] = quote(params['url'])
142143

143144
if match_post and match_post.groupdict() is not None:
144145
url_query = parse_qs(urlparse(params['url']).query)

0 commit comments

Comments
 (0)