forked from cloudflare/cloudflare-go
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
logpush: Handle invalid destination configuration (cloudflare#500)
In the event that the destination configuration of a logpush job challenge returns an erorr, we don't currently catch that. Instead, we return the ownership challenge struct successfully which is slightly misleading. This introduces more error checking on the API itself to inspect the response payload for the `valid` parameter being set to true which handles the scenarios where ownership validation fails. Fixes cloudflare#499
- Loading branch information
1 parent
246f2f7
commit 1cc2e45
Showing
2 changed files
with
38 additions
and
0 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