Skip to content

Commit 766b31f

Browse files
committed
Fixing bug with content-type for SecureFileShareApi
1 parent 7531f32 commit 766b31f

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

generator/cybersource_node_sdk_gen.bat

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ REM Command to generate SDK
1111

1212
java -jar swagger-codegen-cli-2.3.0.jar generate -t cybersource-javascript-template -i cybersource-rest-spec.json -l javascript -o ../ -c cybersource-node-config.json
1313

14+
powershell -Command "(Get-Content ..\src\Api\SecureFileShareApi.js) | ForEach-Object { $_ -replace 'contentTypes = \[''application/json;charset=utf-8', 'contentTypes = [''*/*' } | Set-Content ..\src\Api\SecureFileShareApi.js"
15+
1416
git checkout ..\README.md
1517

1618
git checkout ..\package.json

src/api/SecureFileShareApi.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@
8787
};
8888

8989
var authNames = [];
90-
var contentTypes = ['application/json;charset=utf-8'];
90+
var contentTypes = ['*/*'];
9191
var accepts = ['application/xml', 'text/csv', 'application/pdf'];
9292
var returnType = null;
9393

@@ -144,7 +144,7 @@
144144
};
145145

146146
var authNames = [];
147-
var contentTypes = ['application/json;charset=utf-8'];
147+
var contentTypes = ['*/*'];
148148
var accepts = ['application/hal+json'];
149149
var returnType = V1FileDetailsGet200Response;
150150

0 commit comments

Comments
 (0)