From 64e29c621bef78a3bbdf30dd559d479be0b8ec59 Mon Sep 17 00:00:00 2001 From: Nicolas Guiard Date: Tue, 18 Oct 2022 19:25:24 +0200 Subject: [PATCH] test(tonic-web): fix grpc_web_content_types() test not covering all cases (#1113) --- tonic-web/src/service.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tonic-web/src/service.rs b/tonic-web/src/service.rs index 296a355..03f31b2 100644 --- a/tonic-web/src/service.rs +++ b/tonic-web/src/service.rs @@ -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));