Bug 1677858 - Make headers that http3serve sends lowercase. r=necko-reviewers,kershaw

Differential Revision: https://phabricator.services.mozilla.com/D97374
This commit is contained in:
Dragana Damjanovic 2020-11-19 13:06:31 +00:00
Родитель 8915c56905
Коммит 1c5dbb5595
1 изменённых файлов: 9 добавлений и 9 удалений

Просмотреть файл

@ -88,7 +88,7 @@ impl HttpServer for Http3TestServer {
let default_ret = b"Hello World".to_vec();
let default_headers = vec![
(String::from(":status"), String::from("200")),
(String::from("Cache-Control"), String::from("no-cache")),
(String::from("cache-control"), String::from("no-cache")),
(
String::from("content-length"),
default_ret.len().to_string(),
@ -106,7 +106,7 @@ impl HttpServer for Http3TestServer {
&[
(String::from(":status"), String::from("421")),
(
String::from("Cache-Control"),
String::from("cache-control"),
String::from("no-cache"),
),
(
@ -143,11 +143,11 @@ impl HttpServer for Http3TestServer {
&[
(String::from(":status"), String::from("200")),
(
String::from("Cache-Control"),
String::from("cache-control"),
String::from("no-cache"),
),
(
String::from("Content-Type"),
String::from("content-type"),
String::from("application/json"),
),
(
@ -169,7 +169,7 @@ impl HttpServer for Http3TestServer {
&[
(String::from(":status"), String::from("200")),
(
String::from("Cache-Control"),
String::from("cache-control"),
String::from("no-cache"),
),
],
@ -182,7 +182,7 @@ impl HttpServer for Http3TestServer {
&[
(String::from(":status"), String::from("200")),
(
String::from("Cache-Control"),
String::from("cache-control"),
String::from("no-cache"),
),
],
@ -195,7 +195,7 @@ impl HttpServer for Http3TestServer {
&[
(String::from(":status"), String::from("200")),
(
String::from("Cache-Control"),
String::from("cache-control"),
String::from("no-cache"),
),
(String::from("content-length"), 4000.to_string()),
@ -213,7 +213,7 @@ impl HttpServer for Http3TestServer {
&[
(String::from(":status"), String::from("200")),
(
String::from("Cache-Control"),
String::from("cache-control"),
String::from("no-cache"),
),
(String::from("content-length"), v.to_string()),
@ -249,7 +249,7 @@ impl HttpServer for Http3TestServer {
.set_response(
&[
(String::from(":status"), String::from("200")),
(String::from("Cache-Control"), String::from("no-cache")),
(String::from("cache-control"), String::from("no-cache")),
(String::from("x-data-received-length"), r.to_string()),
(
String::from("content-length"),