This is an automated email from the ASF dual-hosted git repository. masaori pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/trafficserver.git
The following commit(s) were added to refs/heads/master by this push: new 1f3e11119 Ignore POST request case from a check for background fill (#9013) 1f3e11119 is described below commit 1f3e1111931e26b5ad483a8bc80b3ae7edc0b568 Author: Masaori Koshiba <masa...@apache.org> AuthorDate: Tue Aug 9 10:30:20 2022 +0900 Ignore POST request case from a check for background fill (#9013) --- 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 e5e2e58a5..0bd1be845 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; } }