File tree Expand file tree Collapse file tree 2 files changed +8
-1
lines changed
subprojects/zap-clientapi/src/main/java/org/zaproxy/clientapi/core Expand file tree Collapse file tree 2 files changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -10,7 +10,7 @@ allprojects {
10
10
apply plugin : ' java'
11
11
group = ' org.zaproxy'
12
12
13
- version ' 1.1.0 '
13
+ version ' 1.1.1 '
14
14
ext. versionBC = ' 1.0.0'
15
15
16
16
repositories {
Original file line number Diff line number Diff line change @@ -398,6 +398,13 @@ private HttpRequest buildZapRequest(
398
398
}
399
399
sb .append ('&' );
400
400
}
401
+ } else if (apiKey != null && !apiKey .isEmpty ()) {
402
+ // Send the API key even if there are no parameters,
403
+ // older ZAP versions might need it as (query) parameter.
404
+ sb .append ('?' );
405
+ sb .append (encodeQueryParam (ZAP_API_KEY_PARAM ));
406
+ sb .append ('=' );
407
+ sb .append (encodeQueryParam (apiKey ));
401
408
}
402
409
403
410
HttpRequest request = new HttpRequest (new URL (sb .toString ()));
You can’t perform that action at this time.
0 commit comments