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 33579fe commit 08d0a9aCopy full SHA for 08d0a9a
jamf/jamfprointegration/headers.go
@@ -16,7 +16,7 @@ import (
16
func (j *Integration) getContentTypeHeader(endpoint string) string {
17
j.Logger.Debug("Determining Content-Type for endpoint", zap.String("endpoint", endpoint))
18
19
- if strings.HasPrefix(endpoint, "/api/v1/packages/") && strings.Contains(endpoint, "/upload") {
+ if strings.Contains(endpoint, "/api/v1/packages/") && strings.Contains(endpoint, "/upload") {
20
j.Logger.Debug("Content-Type for packages upload endpoint set to application/octet-stream", zap.String("endpoint", endpoint))
21
return "application/octet-stream"
22
}
0 commit comments