test(tonic-web): fix grpc_web_content_types() test not covering all cases (#1113)

This commit is contained in:
Nicolas Guiard
2022-10-18 19:25:24 +02:00
committed by GitHub
parent be1fe02e6e
commit 64e29c621b
+1 -1
View File
@@ -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));