Skip to content

Commit

Permalink
fix: Content-Type header for external_data request (#192)
Browse files Browse the repository at this point in the history
Signed-off-by: Joel Kamp <[email protected]>
  • Loading branch information
mrjoelkamp authored Feb 2, 2022
1 parent 4ee2501 commit 0f61a46
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions constraint/pkg/client/drivers/local/local.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ func (d *Driver) Init() error {
if err != nil {
return externaldata.HandleError(http.StatusInternalServerError, err)
}
req.Header.Set("Content-Type", "application/json")

ctx, cancel := context.WithDeadline(bctx.Context, time.Now().Add(time.Duration(provider.Spec.Timeout)*time.Second))
defer cancel()
Expand Down

0 comments on commit 0f61a46

Please sign in to comment.