Skip to content

Commit fb75a43

Browse files
author
Ankit Saini
authored
Merge pull request #513 from postmanlabs/issue/502
Allow GET method to have a body in java-okhttp if present in input request.
2 parents cc7cde8 + 3d8180f commit fb75a43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codegens/java-okhttp/lib/okhttp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ var _ = require('./lodash'),
66
sanitizeOptions = require('./util').sanitizeOptions;
77

88
// Since Java OkHttp requires to add extralines of code to handle methods with body
9-
const METHODS_WITHOUT_BODY = ['GET', 'HEAD', 'COPY', 'UNLOCK', 'UNLINK', 'PURGE', 'LINK', 'VIEW'];
9+
const METHODS_WITHOUT_BODY = ['HEAD', 'COPY', 'UNLOCK', 'UNLINK', 'PURGE', 'LINK', 'VIEW'];
1010

1111
/**
1212
* returns snippet of java okhttp by parsing data from Postman-SDK request object

0 commit comments

Comments
 (0)