mirror of
https://github.com/fafhrd91/actix-web
synced 2025-06-25 06:39:22 +02:00
do not override content-length header
This commit is contained in:
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user