Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
RyanTheOptimist committed Jul 25, 2022
1 parent 84d0a26 commit 901d67d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
7 changes: 3 additions & 4 deletions library/common/extensions/filters/http/socket_tag/filter.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 901d67d

Please sign in to comment.