Skip to content

Commit

Permalink
test(tonic-web): fix grpc_web_content_types() test not covering all c…
Browse files Browse the repository at this point in the history
…ases (#1113)
  • Loading branch information
nguiard committed Oct 18, 2022
1 parent be1fe02 commit 64e29c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tonic-web/src/service.rs
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ mod tests {
async fn grpc_web_content_types() {
let mut svc = crate::enable(Svc);

for ct in &[GRPC_WEB_TEXT, GRPC_WEB_PROTO, GRPC_WEB_PROTO, GRPC_WEB] {
for ct in &[GRPC_WEB_TEXT, GRPC_WEB_PROTO, GRPC_WEB_TEXT_PROTO, GRPC_WEB] {
let mut req = request();
req.headers_mut()
.insert(CONTENT_TYPE, HeaderValue::from_static(ct));
Expand Down

0 comments on commit 64e29c6

Please sign in to comment.