1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 18:09:22 +02:00

do not override content-length header

This commit is contained in:
Nikolay Kim
2018-10-08 15:30:59 -07:00
parent 07f6ca4b71
commit 4e7fac08b9
3 changed files with 19 additions and 14 deletions

View File

@ -1358,8 +1358,8 @@ fn test_ssl_handshake_timeout() {
#[test]
fn test_content_length() {
use http::StatusCode;
use actix_web::http::header::{HeaderName, HeaderValue};
use http::StatusCode;
let mut srv = test::TestServer::new(move |app| {
app.resource("/{status}", |r| {
@ -1398,4 +1398,3 @@ fn test_content_length() {
assert_eq!(response.headers().get(&header), Some(&value));
}
}