Skip to content

Commit

Permalink
Merge pull request #10 from deploymenttheory/dev-jl-testing
Browse files Browse the repository at this point in the history
HTTP Client Version Bump
  • Loading branch information
thejoeker12 authored Aug 13, 2024
2 parents 0ab7364 + bf42a64 commit 18140d3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_store
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/deploymenttheory/go-api-http-client-integrations
go 1.22.4

require (
github.com/deploymenttheory/go-api-http-client v0.2.10
github.com/deploymenttheory/go-api-http-client v0.2.11
go.uber.org/zap v1.27.0
)

Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ github.com/antchfx/xpath v1.3.1 h1:PNbFuUqHwWl0xRjvUPjJ95Agbmdj2uzzIwmQKgu4oCk=
github.com/antchfx/xpath v1.3.1/go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs=
github.com/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c=
github.com/davecgh/go-spew v1.1.1/go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38=
github.com/deploymenttheory/go-api-http-client v0.2.10 h1:rV9IEqt3R6LDm+OVNoMLeuouuw615licr3ULaHEFa2s=
github.com/deploymenttheory/go-api-http-client v0.2.10/go.mod h1:LKDnBcieS6CyikZjTKPpziVdxnTwzBHE6Hx1cuWRcuU=
github.com/deploymenttheory/go-api-http-client v0.2.11 h1:hEVxXX60cUxRqKkJBHADC/S91+iCPYdBIwkT6stexTY=
github.com/deploymenttheory/go-api-http-client v0.2.11/go.mod h1:LKDnBcieS6CyikZjTKPpziVdxnTwzBHE6Hx1cuWRcuU=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE=
github.com/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da/go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc=
github.com/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0=
Expand Down
4 changes: 4 additions & 0 deletions jamf/jamfprointegration/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ func (j *Integration) getContentTypeHeader(endpoint string) string {
return "application/octet-stream"
}

if strings.Contains(endpoint, "icon") {
return "multipart/form-data"
}

if strings.Contains(endpoint, "/JSSResource") {
j.Sugar.Debugw("Content-Type for endpoint defaulting to XML for Classic API", "endpoint", endpoint)
// TODO should this be application/xml or text/xml?
Expand Down

0 comments on commit 18140d3

Please sign in to comment.