forked from tailscale/tailscale-client-go
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not attempt to standardise response bodies when we don't need to (t…
…ailscale#20) Related to https://github.com/davidsbond/terraform-provider-tailscale/issues/113 This commit modifies the request making code to not attempt to standardise response bodies if we are not attempting to parse the response. For example, the tailnet key delete API response has an empty body, which would cause errors when calling hujson.Standardize. Signed-off-by: David Bond <davidsbond93@gmail.com>
- Loading branch information
1 parent
fc53730
commit 04fd877
Showing
2 changed files
with
20 additions
and
9 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