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 {
1010 apply plugin : ' java'
1111 group = ' org.zaproxy'
1212
13- version ' 1.1.0 '
13+ version ' 1.1.1 '
1414 ext. versionBC = ' 1.0.0'
1515
1616 repositories {
Original file line number Diff line number Diff line change @@ -398,6 +398,13 @@ private HttpRequest buildZapRequest(
398398 }
399399 sb .append ('&' );
400400 }
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 ));
401408 }
402409
403410 HttpRequest request = new HttpRequest (new URL (sb .toString ()));
You can’t perform that action at this time.
0 commit comments