File tree Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Expand file tree Collapse file tree 4 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1+ .DS_store
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ module github.com/deploymenttheory/go-api-http-client-integrations
33go 1.22.4
44
55require (
6- github.com/deploymenttheory/go-api-http-client v0.2.10
6+ github.com/deploymenttheory/go-api-http-client v0.2.11
77 go.uber.org/zap v1.27.0
88)
99
Original file line number Diff line number Diff line change @@ -4,8 +4,8 @@ github.com/antchfx/xpath v1.3.1 h1:PNbFuUqHwWl0xRjvUPjJ95Agbmdj2uzzIwmQKgu4oCk=
44github.202132.xyz/antchfx/xpath v1.3.1 /go.mod h1:i54GszH55fYfBmoZXapTHN8T8tkcHfRgLyVwwqzXNcs =
55github.202132.xyz/davecgh/go-spew v1.1.1 h1:vj9j/u1bqnvCEfJOwUhtlOARqs3+rkHYY13jYWTU97c =
66github.202132.xyz/davecgh/go-spew v1.1.1 /go.mod h1:J7Y8YcW2NihsgmVo/mv3lAwl/skON4iLHjSsI+c5H38 =
7- github.com/deploymenttheory/go-api-http-client v0.2.10 h1:rV9IEqt3R6LDm+OVNoMLeuouuw615licr3ULaHEFa2s =
8- github.com/deploymenttheory/go-api-http-client v0.2.10 /go.mod h1:LKDnBcieS6CyikZjTKPpziVdxnTwzBHE6Hx1cuWRcuU =
7+ github.com/deploymenttheory/go-api-http-client v0.2.11 h1:hEVxXX60cUxRqKkJBHADC/S91+iCPYdBIwkT6stexTY =
8+ github.com/deploymenttheory/go-api-http-client v0.2.11 /go.mod h1:LKDnBcieS6CyikZjTKPpziVdxnTwzBHE6Hx1cuWRcuU =
99github.202132.xyz/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da h1:oI5xCqsCo564l8iNU+DwB5epxmsaqB+rhGL0m5jtYqE =
1010github.202132.xyz/golang/groupcache v0.0.0-20210331224755-41bb18bfe9da /go.mod h1:cIg4eruTrX1D+g88fzRXU5OdNfaM+9IcxsU14FzY7Hc =
1111github.202132.xyz/google/uuid v1.6.0 h1:NIvaJDMOsjHA8n1jAhLSgzrAzy1Hgr+hNrb57e+94F0 =
Original file line number Diff line number Diff line change @@ -41,6 +41,10 @@ func (j *Integration) getContentTypeHeader(endpoint string) string {
4141 return "application/octet-stream"
4242 }
4343
44+ if strings .Contains (endpoint , "icon" ) {
45+ return "multipart/form-data"
46+ }
47+
4448 if strings .Contains (endpoint , "/JSSResource" ) {
4549 j .Sugar .Debugw ("Content-Type for endpoint defaulting to XML for Classic API" , "endpoint" , endpoint )
4650 // TODO should this be application/xml or text/xml?
You can’t perform that action at this time.
0 commit comments