Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1124,6 +1124,12 @@ private void validate(APICreateLoadBalancerListenerMsg msg) {
argerr(ORG_ZSTACK_NETWORK_SERVICE_LB_10095, "cloud not create the loadbalancer listener, because only support compress algos[%s]", LbSupportHttpCompressAlgos));
}

if (msg.getHttpCompressAlgos().contains(DisableLbSupportHttpCompressAlgos)) {
throw new ApiMessageInterceptionException(
argerr(ORG_ZSTACK_NETWORK_SERVICE_LB_10095, "could not create the loadbalancer listener with httpCompressAlgos containing 'disable', " +
"'disable' is only valid when changing an existing listener to remove compression"));
}

if (!msg.getHttpCompressAlgos().contains(DisableLbSupportHttpCompressAlgos)) {
insertTagIfNotExisting(
msg, LoadBalancerSystemTags.HTTP_COMPRESS_ALGOS,
Expand Down