Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).

## [Unreleased]

### Changed
- Fix typos in error messages.

## [0.0.16] - 2020-01-22
### Added
Expand Down Expand Up @@ -88,4 +90,4 @@ ensure it's automatically sent in all API requests.
[0.0.11]: https://github.com/zaproxy/zap-api-python/compare/0.0.10...0.0.11
[0.0.10]: https://github.com/zaproxy/zap-api-python/compare/0.0.9...0.0.10
[0.0.9]: https://github.com/zaproxy/zap-api-python/compare/0.0.8...0.0.9
[0.0.8]: https://github.com/zaproxy/zap-api-python/compare/98ce6066deba2c65eb992489311e146fff9b3430...0.0.8
[0.0.8]: https://github.com/zaproxy/zap-api-python/compare/98ce6066deba2c65eb992489311e146fff9b3430...0.0.8
2 changes: 1 addition & 1 deletion src/examples/zap_example_api_script.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# MANDATORY. Define the listening address of ZAP instance
localProxy = {"http": "http://127.0.0.1:8080", "https": "http://127.0.0.1:8080"}

# MANDATORY. True to create another ZAP session (overwritte the former if the
# MANDATORY. True to create another ZAP session (overwrite the former if the
# same name already exists), False to use an existing one
isNewSession = True
# MANDATORY. ZAP Session name
Expand Down
4 changes: 2 additions & 2 deletions src/zapv2/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -170,11 +170,11 @@ def _request_api(self, url, query=None):
response = self.session.get(url, params=query, proxies=self.__proxies, verify=False)

if (self.__validate_status_code and response.status_code >= 300 and response.status_code < 500):
raise Exception("Non-successfull status code returned from ZAP, which indicates a bad request: "
raise Exception("Non-successful status code returned from ZAP, which indicates a bad request: "
+ str(response.status_code)
+ "response: " + response.text )
elif (self.__validate_status_code and response.status_code >= 500):
raise Exception("Non-successfull status code returned from ZAP, which indicates a ZAP internal error: "
raise Exception("Non-successful status code returned from ZAP, which indicates a ZAP internal error: "
+ str(response.status_code)
+ "response: " + response.text )
return response
Expand Down