File tree 1 file changed +3
-5
lines changed
src/main/java/swurg/workers 1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -102,10 +102,9 @@ public List<MyHttpRequest> parseOpenAPI(OpenAPI openAPI) {
102
102
.withAddedParameters (httpParameters );
103
103
104
104
int contentLength = httpRequest .body ().length ();
105
- if (contentLength > 0 ) {
105
+ if (contentLength > 0 )
106
106
httpRequest = httpRequest .withAddedHeader (HttpHeader
107
107
.httpHeader ("content-length" , String .valueOf (contentLength )));
108
- }
109
108
110
109
logEntries .add (new MyHttpRequest (httpRequest , op .getDescription ()));
111
110
} catch (URISyntaxException e ) {
@@ -169,11 +168,10 @@ private List<HttpParameter> buildHttpRequestParameters(List<Parameter> parameter
169
168
.map (Schema ::getType )
170
169
.orElse (null );
171
170
172
- if ("header" .equals (in )) {
171
+ if ("header" .equals (in ))
173
172
httpParameters .add (HttpParameter .cookieParameter (name , value ));
174
- } else if ("query" .equals (in )) {
173
+ else if ("query" .equals (in ))
175
174
httpParameters .add (HttpParameter .urlParameter (name , value ));
176
- }
177
175
}));
178
176
179
177
Optional .ofNullable (requestBody )
You can’t perform that action at this time.
0 commit comments