-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(cfapi): only parse SignResponse when it exists
If the Cloudflare API returns an error, it is unlikely to have also sent a valid response, resulting in failure trying to parse the expiration time formats. This changeset delays parsing the result field until after verifying the error field. Fixes #46
- Loading branch information
1 parent
1001a9a
commit b912d75
Showing
2 changed files
with
121 additions
and
6 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