We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6f11deb commit 974d556Copy full SHA for 974d556
apiintegrations/jamfpro/jamfpro_api_headers.go
@@ -32,8 +32,8 @@ func (j *JamfAPIHandler) GetContentTypeHeader(endpoint string, log logger.Logger
32
33
// Special case for package upload endpoint
34
if strings.HasPrefix(endpoint, "/api/v1/packages") && strings.HasSuffix(endpoint, "/upload") {
35
- j.Logger.Debug("Content-Type for package upload endpoint defaulting to multipart/form-data", zap.String("endpoint", endpoint))
36
- return "multipart/form-data"
+ j.Logger.Debug("Skipping Content-Type setting for package upload endpoint. Multipart request will set", zap.String("endpoint", endpoint))
+ return "" // Skip setting Content-Type here
37
}
38
39
// If no specific configuration is found, then check for standard URL patterns.
0 commit comments