-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support non-200 response status codes
These are used by a few API modules, notably some WikiLambda APIs (or Wikifunctions APIs, as they’re apparently starting to be called now). I hope that checking for the MediaWiki-API-Error response header is enough to distinguish between such responses and genuine internal errors that we shouldn’t even try to decode. Only unit-tested, because this feature is so rare that none of the APIs using it seem suitable for an integration test against a real MediaWiki. Fixes #30.
- Loading branch information
1 parent
cee693d
commit e067c9c
Showing
3 changed files
with
17 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters