From 25acf973308da10bd6fbaa18456742fa98879269 Mon Sep 17 00:00:00 2001 From: Masaori Koshiba Date: Wed, 20 Apr 2022 15:15:33 +0900 Subject: [PATCH] Ignore POST request case from a check for background fill --- proxy/http/HttpTunnel.h | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/proxy/http/HttpTunnel.h b/proxy/http/HttpTunnel.h index e5e2e58a5b6..0bd1be84511 100644 --- a/proxy/http/HttpTunnel.h +++ b/proxy/http/HttpTunnel.h @@ -546,12 +546,14 @@ HttpTunnel::has_consumer_besides_client() const continue; } - if (consumer.vc_type == HT_HTTP_CLIENT) { - res = false; + switch (consumer.vc_type) { + case HT_HTTP_CLIENT: continue; - } else { - res = true; - break; + case HT_HTTP_SERVER: + // ignore uploading data to servers + continue; + default: + return true; } }