aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/ext/filters/http
diff options
context:
space:
mode:
authorGravatar ncteisen <ncteisen@gmail.com>2018-09-04 13:01:34 -0700
committerGravatar ncteisen <ncteisen@gmail.com>2018-09-04 13:01:34 -0700
commit5e054bf11e58049d988746cb76238f8099ac1faa (patch)
treed2bde7bcaa97c934a59be6e8cb82bd9c74223d7a /src/core/ext/filters/http
parenta1f5c0942d1656ac16f7f385989c402d3b4074a0 (diff)
Stop unconditionally surfacing user agent to server
Diffstat (limited to 'src/core/ext/filters/http')
-rw-r--r--src/core/ext/filters/http/server/http_server_filter.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/core/ext/filters/http/server/http_server_filter.cc b/src/core/ext/filters/http/server/http_server_filter.cc
index 926afeec84..a238d5f989 100644
--- a/src/core/ext/filters/http/server/http_server_filter.cc
+++ b/src/core/ext/filters/http/server/http_server_filter.cc
@@ -262,6 +262,10 @@ static grpc_error* hs_filter_incoming_metadata(grpc_call_element* elem,
GRPC_ERROR_STR_KEY, grpc_slice_from_static_string(":authority")));
}
+ if (b->idx.named.user_agent != nullptr) {
+ grpc_metadata_batch_remove(b, b->idx.named.user_agent);
+ }
+
return error;
}