This commit is contained in:
Rob Ede 2021-03-07 10:21:24 +00:00
parent a6c65a1743
commit 5e085f251a
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
1 changed files with 1 additions and 2 deletions

View File

@ -632,8 +632,7 @@ mod tests {
let mut res: Response<()> = let mut res: Response<()> =
Response::new(StatusCode::SWITCHING_PROTOCOLS).into_body::<()>(); Response::new(StatusCode::SWITCHING_PROTOCOLS).into_body::<()>();
res.headers_mut() res.headers_mut().insert(DATE, HeaderValue::from_static(""));
.insert(DATE, HeaderValue::from_static(""));
res.headers_mut() res.headers_mut()
.insert(CONTENT_LENGTH, HeaderValue::from_static("0")); .insert(CONTENT_LENGTH, HeaderValue::from_static("0"));