Skip to content

Commit

Permalink
GH #755 - Support parentheses in URL paths.
Browse files Browse the repository at this point in the history
  • Loading branch information
dsuch committed Nov 17, 2023
1 parent ae3e105 commit d7ce042
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions code/zato-common/src/zato/common/util/url_dispatcher.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ def get_match_target(config, sep=MISC.SEPARATOR, accept_any_http=accept_any_http
url_path = config['url_path']

# Support parentheses in URL paths
url_path = url_path.replace('(', '\(')
url_path = url_path.replace(')', '\)')
url_path = url_path.replace('(', r'\(')
url_path = url_path.replace(')', r'\)')

# Build the pattern ..
pattern = f'{soap_action}{sep}{http_method}{sep}{http_accept}{sep}{url_path}'
Expand Down

0 comments on commit d7ce042

Please sign in to comment.