From 901d67d0289ce57ab4e5391809045babcb40880b Mon Sep 17 00:00:00 2001 From: Ryan Hamilton Date: Mon, 25 Jul 2022 20:42:58 +0000 Subject: [PATCH] format --- .../common/extensions/filters/http/socket_tag/filter.cc | 7 +++---- .../common/extensions/filters/http/socket_tag/filter.proto | 1 - 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/library/common/extensions/filters/http/socket_tag/filter.cc b/library/common/extensions/filters/http/socket_tag/filter.cc index 22533438f1..6fa9ad53ad 100644 --- a/library/common/extensions/filters/http/socket_tag/filter.cc +++ b/library/common/extensions/filters/http/socket_tag/filter.cc @@ -24,10 +24,9 @@ Http::FilterHeadersStatus SocketTagFilter::decodeHeaders(Http::RequestHeaderMap& uid_t uid; uint32_t traffic_stats_tag; if (!absl::SimpleAtoi(data.first, &uid) || !absl::SimpleAtoi(data.second, &traffic_stats_tag)) { - decoder_callbacks_->sendLocalReply(Http::Code::BadRequest, - "Invalid socket-tag header.", - nullptr, absl::nullopt, ""); - // return Http::FilterDataStatus::StopIterationNoBuffer; + decoder_callbacks_->sendLocalReply(Http::Code::BadRequest, "Invalid socket-tag header.", + nullptr, absl::nullopt, ""); + // return Http::FilterDataStatus::StopIterationNoBuffer; return Http::FilterHeadersStatus::StopIteration; } diff --git a/library/common/extensions/filters/http/socket_tag/filter.proto b/library/common/extensions/filters/http/socket_tag/filter.proto index 5915dbbe6c..a544a06196 100644 --- a/library/common/extensions/filters/http/socket_tag/filter.proto +++ b/library/common/extensions/filters/http/socket_tag/filter.proto @@ -2,7 +2,6 @@ syntax = "proto3"; package envoymobile.extensions.filters.http.socket_tag; - // Configuration for the socket tagging filer. This filter uses data from the // socket-tag request header to apply and Android Socket Tag to the upstream // socket.