Skip to content

Commit

Permalink
Accept JSON encoding
Browse files Browse the repository at this point in the history
  • Loading branch information
GJSBRT committed Apr 18, 2023
1 parent 0710395 commit ce8de53
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions dutchis/virtualserver.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func resourceVirtualServerCreate(d *schema.ResourceData, meta interface{}) error

req.Header.Add("Authorization", "Bearer "+providerConfig.APIToken)
req.Header.Add("X-Team-Uuid", providerConfig.TeamUUID)
req.Header.Add("Content-Type", "application/json")
resp, err := http.DefaultClient.Do(req)
if err != nil {
logger.Error().Err(err).Msg("Failed to send HTTP request")
Expand Down

0 comments on commit ce8de53

Please sign in to comment.