Skip to content

Commit 6172c20

Browse files
authored
Update extension.py to clean request.path before logging it (#351)
* Update extension.py to use string format specifier for cleaning request.path
1 parent cadade9 commit 6172c20

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

flask_cors/extension.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ def cors_after_request(resp):
193193
normalized_path = unquote_plus(request.path)
194194
for res_regex, res_options in resources:
195195
if try_match(normalized_path, res_regex):
196-
LOG.debug("Request to '%s' matches CORS resource '%s'. Using options: %s",
196+
LOG.debug("Request to '%r' matches CORS resource '%s'. Using options: %s",
197197
request.path, get_regexp_pattern(res_regex), res_options)
198198
set_cors_headers(resp, res_options)
199199
break

0 commit comments

Comments
 (0)