mirror of
https://github.com/fafhrd91/actix-web
synced 2025-08-02 21:35:42 +02:00
Compare commits
2 Commits
awc-v0.2.8
...
web-v1.0.9
Author | SHA1 | Date | |
---|---|---|---|
|
0212c618c6 | ||
|
88110ed268 |
@@ -1,6 +1,6 @@
|
|||||||
# Changes
|
# Changes
|
||||||
|
|
||||||
## [1.0.9] - 2019-xx-xx
|
## [1.0.9] - 2019-11-14
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
* Support `Host` guards when the `Host` header is unset (e.g. HTTP/2 requests) (#1129)
|
* Support `Host` guards when the `Host` header is unset (e.g. HTTP/2 requests) (#1129)
|
||||||
|
|
||||||
|
|
||||||
## [1.0.8] - 2019-09-25
|
## [1.0.8] - 2019-09-25
|
||||||
|
|
||||||
### Added
|
### Added
|
||||||
|
@@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "actix-web"
|
name = "actix-web"
|
||||||
version = "1.0.8"
|
version = "1.0.9"
|
||||||
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
authors = ["Nikolay Kim <fafhrd91@gmail.com>"]
|
||||||
description = "Actix web is a simple, pragmatic and extremely fast web framework for Rust."
|
description = "Actix web is a simple, pragmatic and extremely fast web framework for Rust."
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
@@ -78,7 +78,7 @@ actix-utils = "0.4.4"
|
|||||||
actix-router = "0.1.5"
|
actix-router = "0.1.5"
|
||||||
actix-rt = "0.2.4"
|
actix-rt = "0.2.4"
|
||||||
actix-web-codegen = "0.1.2"
|
actix-web-codegen = "0.1.2"
|
||||||
actix-http = "0.2.9"
|
actix-http = "0.2.11"
|
||||||
actix-server = "0.6.1"
|
actix-server = "0.6.1"
|
||||||
actix-server-config = "0.1.2"
|
actix-server-config = "0.1.2"
|
||||||
actix-testing = "0.1.0"
|
actix-testing = "0.1.0"
|
||||||
|
@@ -162,6 +162,12 @@ impl ConnectionInfo {
|
|||||||
/// - Forwarded
|
/// - Forwarded
|
||||||
/// - X-Forwarded-For
|
/// - X-Forwarded-For
|
||||||
/// - peer name of opened socket
|
/// - peer name of opened socket
|
||||||
|
///
|
||||||
|
/// # Security
|
||||||
|
/// Do not use this function for security purposes, unless you can ensure the Forwarded and
|
||||||
|
/// X-Forwarded-For headers cannot be spoofed by the client. If you want the client's socket
|
||||||
|
/// address explicitly, use
|
||||||
|
/// [`HttpRequest::peer_addr()`](../web/struct.HttpRequest.html#method.peer_addr) instead.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn remote(&self) -> Option<&str> {
|
pub fn remote(&self) -> Option<&str> {
|
||||||
if let Some(ref r) = self.remote {
|
if let Some(ref r) = self.remote {
|
||||||
|
Reference in New Issue
Block a user