File tree Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Expand file tree Collapse file tree 1 file changed +7
-1
lines changed Original file line number Diff line number Diff line change 47
47
}
48
48
)
49
49
50
+ const bom = "\uFEFF "
51
+
52
+ func stripAllBOMs (s string ) string {
53
+ return strings .ReplaceAll (s , bom , "" )
54
+ }
55
+
50
56
// formatProperties will iterate through the properties of a json object and convert any "int" values to strings
51
57
// this is required because the Keyfactor API expects all properties to be strings
52
58
func formatProperties (json * gabs.Container , reqPropertiesForStoreType []string ) * gabs.Container {
@@ -355,7 +361,7 @@ If you do not wish to include credentials in your CSV file they can be provided
355
361
Value : & storePassword ,
356
362
}
357
363
}
358
- mJSON := reqJson .String ()
364
+ mJSON := stripAllBOMs ( reqJson .String () )
359
365
conversionError := json .Unmarshal ([]byte (mJSON ), & createStoreReqParameters )
360
366
361
367
if conversionError != nil {
You can’t perform that action at this time.
0 commit comments