mirror of
https://github.com/fafhrd91/actix-web
synced 2024-11-23 16:21:06 +01:00
fix typos (#2982)
This commit is contained in:
parent
dc08ea044b
commit
42193bee29
@ -30,7 +30,7 @@ impl PathBufWrap {
|
|||||||
let mut segment_count = path.matches('/').count() + 1;
|
let mut segment_count = path.matches('/').count() + 1;
|
||||||
|
|
||||||
// we can decode the whole path here (instead of per-segment decoding)
|
// we can decode the whole path here (instead of per-segment decoding)
|
||||||
// because we will reject `%2F` in paths using `segement_count`.
|
// because we will reject `%2F` in paths using `segment_count`.
|
||||||
let path = percent_encoding::percent_decode_str(path)
|
let path = percent_encoding::percent_decode_str(path)
|
||||||
.decode_utf8()
|
.decode_utf8()
|
||||||
.map_err(|_| UriSegmentError::NotValidUtf8)?;
|
.map_err(|_| UriSegmentError::NotValidUtf8)?;
|
||||||
|
@ -681,7 +681,7 @@
|
|||||||
- Reduce the level from `error` to `debug` for the log line that is emitted when a `500 Internal Server Error` is built using `HttpResponse::from_error`. [#2201]
|
- Reduce the level from `error` to `debug` for the log line that is emitted when a `500 Internal Server Error` is built using `HttpResponse::from_error`. [#2201]
|
||||||
- `ResponseBuilder::message_body` now returns a `Result`. [#2201]
|
- `ResponseBuilder::message_body` now returns a `Result`. [#2201]
|
||||||
- Remove `Unpin` bound on `ResponseBuilder::streaming`. [#2253]
|
- Remove `Unpin` bound on `ResponseBuilder::streaming`. [#2253]
|
||||||
- `HttpServer::{listen_rustls(), bind_rustls()}` now honor the ALPN protocols in the configuation parameter. [#2226]
|
- `HttpServer::{listen_rustls(), bind_rustls()}` now honor the ALPN protocols in the configuration parameter. [#2226]
|
||||||
|
|
||||||
### Removed
|
### Removed
|
||||||
- Stop re-exporting `http` crate's `HeaderMap` types in addition to ours. [#2171]
|
- Stop re-exporting `http` crate's `HeaderMap` types in addition to ours. [#2171]
|
||||||
|
@ -14,7 +14,7 @@
|
|||||||
- `actix_http_test::TestServer` moved to `actix_web::test` module. To start
|
- `actix_http_test::TestServer` moved to `actix_web::test` module. To start
|
||||||
test server use `test::start()` or `test_start_with_config()` methods
|
test server use `test::start()` or `test_start_with_config()` methods
|
||||||
|
|
||||||
- `ResponseError` trait has been reafctored. `ResponseError::error_response()` renders
|
- `ResponseError` trait has been refactored. `ResponseError::error_response()` renders
|
||||||
http response.
|
http response.
|
||||||
|
|
||||||
- Feature `rust-tls` renamed to `rustls`
|
- Feature `rust-tls` renamed to `rustls`
|
||||||
|
@ -268,7 +268,7 @@ where
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Fallible version of [`read_body_json`] that allows testing response deserialzation errors.
|
/// Fallible version of [`read_body_json`] that allows testing response deserialization errors.
|
||||||
pub async fn try_read_body_json<T, B>(res: ServiceResponse<B>) -> Result<T, Box<dyn StdError>>
|
pub async fn try_read_body_json<T, B>(res: ServiceResponse<B>) -> Result<T, Box<dyn StdError>>
|
||||||
where
|
where
|
||||||
B: MessageBody,
|
B: MessageBody,
|
||||||
|
Loading…
Reference in New Issue
Block a user