Skip to content
This repository has been archived by the owner on Sep 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from cyberark/fix-slash-escaping
Browse files Browse the repository at this point in the history
Fix slash escaping
  • Loading branch information
izgeri authored Aug 20, 2019
2 parents 4e1695b + 4c1065d commit 198b492
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
6 changes: 4 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
## [0.0.3]

### Fixed

- Fixed application of conjurrc overrides of `Client` initialization params [#14](https://github.com/cyberark/conjur-api-python3/issues/14)
- Fixed escaping of `/` in parameters of URL

## [0.0.2] - 2019-05-17

Expand All @@ -25,6 +26,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

The first tagged version.

[Unreleased]: https://github.com/conjurinc/conjur-api-python3/compare/v0.0.2...HEAD
[Unreleased]: https://github.com/conjurinc/conjur-api-python3/compare/v0.0.3...HEAD
[0.0.3]: https://github.com/conjurinc/conjur-api-python3/compare/v0.0.2...0.0.3
[0.0.2]: https://github.com/conjurinc/conjur-api-python3/compare/v0.0.1...0.0.2
[0.0.1]: https://github.com/cyberark/conjur-api-python3/tree/v0.0.1
2 changes: 1 addition & 1 deletion conjur/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def invoke_endpoint(http_verb, endpoint, params, *args, check_errors=True,
if key == 'url':
params[key] = value
continue
params[key] = quote(value)
params[key] = quote(value, safe='')

url = endpoint.value.format(**params)

Expand Down
2 changes: 1 addition & 1 deletion test/test_http.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ class HttpInvokeEndpointTest(unittest.TestCase):
}

ESCAPED_PARAMS = [
'abc/%24%21%40%23%24%25%5E%26%2A%28%29%20%5C%5B%5D%7B%7D',
'abc%2F%24%21%40%23%24%25%5E%26%2A%28%29%20%5C%5B%5D%7B%7D',
'%29%28%2A%26%5E%25%24%23%40%21%5B%5D%7B%7D%20%3C%3E%3F',
]

Expand Down

0 comments on commit 198b492

Please sign in to comment.