Skip to content

Commit d7b9e64

Browse files
authored
fix: allow cloudsearchdomain POST search compatibility in unit tests (#4625)
* fix: allow cloudsearchdomain POST search compatibility in unit tests * fix: exit convertGetToPost if request is already POST
1 parent 074aef9 commit d7b9e64

File tree

5 files changed

+6
-25
lines changed

5 files changed

+6
-25
lines changed

Diff for: .gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.idea
12
configuration
23
node_modules
34
npm-debug.log

Diff for: .npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
.npmignore
1010
.tesselinclude
1111
.vscode/
12+
.idea
1213
apis/*.normal.json
1314
appveyor.yml
1415
bower.json

Diff for: lib/services/cloudsearchdomain.js

+3
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,9 @@ AWS.util.update(AWS.CloudSearchDomain.prototype, {
9999
*/
100100
convertGetToPost: function(request) {
101101
var httpRequest = request.httpRequest;
102+
if (httpRequest.method === 'POST') {
103+
return;
104+
}
102105
// convert queries to POST to avoid length restrictions
103106
var path = httpRequest.path.split('?');
104107
httpRequest.method = 'POST';

Diff for: test/services/cloudsearchdomain.spec.js

+1-12
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Diff for: test/signers/v4.spec.js

-13
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)