Merge branch 'master' into feat/io-uring

This commit is contained in:
fakeshadow 2021-11-10 00:45:44 +08:00 committed by GitHub
commit 32d2154fb9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 4 deletions

View File

@ -22,7 +22,7 @@ use time::{format_description::well_known::Rfc3339, OffsetDateTime};
use crate::{
dev::{BodySize, MessageBody},
http::{HeaderName, StatusCode},
http::HeaderName,
service::{ServiceRequest, ServiceResponse},
Error, HttpResponse, Result,
};
@ -275,9 +275,7 @@ where
};
if let Some(error) = res.response().error() {
if res.response().head().status != StatusCode::INTERNAL_SERVER_ERROR {
debug!("Error in response: {:?}", error);
}
debug!("Error in response: {:?}", error);
}
if let Some(ref mut format) = this.format {