Skip to content

Commit

Permalink
Add Content-Type header to NGINX client PATCH requests
Browse files Browse the repository at this point in the history
  • Loading branch information
dylan-way committed Jan 24, 2025
1 parent dbb6870 commit eb3d45d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions client/nginx.go
Original file line number Diff line number Diff line change
Expand Up @@ -1046,6 +1046,7 @@ func (client *NginxClient) patch(ctx context.Context, path string, input interfa
if err != nil {
return fmt.Errorf("failed to create a patch request: %w", err)
}
req.Header.Set("Content-Type", "application/json")

resp, err := client.httpClient.Do(req)
if err != nil {
Expand Down

0 comments on commit eb3d45d

Please sign in to comment.