Skip to content

Commit

Permalink
STAC-21045 Added "Content-Type" header to authorization request, it i…
Browse files Browse the repository at this point in the history
…s required by API server
  • Loading branch information
LukaszMarchewka committed Apr 9, 2024
1 parent 5989ab4 commit 0f28d18
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions extension/ingestionapikeyauthextension/extension.go
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@ func checkAuthorizationHeader(authorizationHeader string, exCtx *extensionContex
}

req, err := http.NewRequest(http.MethodPost, exCtx.config.Endpoint.Url, bytes.NewReader(jsonData))
req.Header.Add("Content-Type", "application/json")
if err != nil {
log.Print("Can't create authorization request ", err)
return errInternal
Expand Down

0 comments on commit 0f28d18

Please sign in to comment.