fix changelog

This commit is contained in:
Rob Ede 2021-12-06 14:50:06 +00:00
parent 1e30dad3b4
commit 5a9ca6eeb3
No known key found for this signature in database
GPG Key ID: 97C636207D3EF933
4 changed files with 5 additions and 25 deletions

View File

@ -36,7 +36,6 @@
* `impl TryFrom<u16>` for `header::Quality`. [#2486]
* `http` module. Most everything it contained is exported at the crate root. [#2488]
[#2327]: https://github.com/actix/actix-web/pull/2327
[#2483]: https://github.com/actix/actix-web/pull/2483
[#2468]: https://github.com/actix/actix-web/pull/2468
[#1920]: https://github.com/actix/actix-web/pull/1920

View File

@ -596,8 +596,7 @@ where
Message::Item(mut req) => {
req.head_mut().peer_addr = *this.peer_addr;
req.conn_data =
this.conn_data.as_ref().map(|data| Rc::clone(data));
req.conn_data = this.conn_data.as_ref().map(Rc::clone);
match this.codec.message_type() {
// Request is upgradable. add upgrade message and break.

View File

@ -119,7 +119,7 @@ where
head.headers = parts.headers.into();
head.peer_addr = this.peer_addr;
req.conn_data = this.conn_data.as_ref().map(|data| Rc::clone(data));
req.conn_data = this.conn_data.as_ref().map(Rc::clone);
let fut = this.flow.service.call(req);
let config = this.config.clone();

View File

@ -581,13 +581,7 @@ impl TestRequest {
let app_state = AppInitServiceState::new(Rc::new(self.rmap), self.config.clone());
ServiceRequest::new(
HttpRequest::new(
self.path,
head,
app_state,
Rc::new(self.app_data),
Default::default(),
),
HttpRequest::new(self.path, head, app_state, Rc::new(self.app_data), None),
payload,
)
}
@ -605,13 +599,7 @@ impl TestRequest {
let app_state = AppInitServiceState::new(Rc::new(self.rmap), self.config.clone());
HttpRequest::new(
self.path,
head,
app_state,
Rc::new(self.app_data),
Default::default(),
)
HttpRequest::new(self.path, head, app_state, Rc::new(self.app_data), None)
}
/// Complete request creation and generate `HttpRequest` and `Payload` instances
@ -622,13 +610,7 @@ impl TestRequest {
let app_state = AppInitServiceState::new(Rc::new(self.rmap), self.config.clone());
let req = HttpRequest::new(
self.path,
head,
app_state,
Rc::new(self.app_data),
Default::default(),
);
let req = HttpRequest::new(self.path, head, app_state, Rc::new(self.app_data), None);
(req, payload)
}