mirror of https://github.com/fafhrd91/actix-web
fix changelog
This commit is contained in:
parent
1e30dad3b4
commit
5a9ca6eeb3
|
@ -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
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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();
|
||||
|
|
24
src/test.rs
24
src/test.rs
|
@ -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)
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue