We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent aa54f4b commit 96052ddCopy full SHA for 96052dd
src/content/content_location.rs
@@ -4,7 +4,7 @@ use crate::{Status, Url};
4
///
5
/// # Specifications
6
7
-/// - [RFC 7230, section 3.3.2: Content-Length](https://tools.ietf.org/html/rfc7230#section-3.3.2)
+/// - [RFC 7230, section 3.3.2: Content-Length](https://tools.ietf.org/html/rfc7231#section-3.1.4.2)
8
9
/// # Examples
10
@@ -70,7 +70,7 @@ impl ContentLocation {
70
71
/// Get the url.
72
pub fn location(&self) -> String {
73
- String::from(&self.url)
+ self.url.to_string()
74
}
75
76
/// Set the url.
0 commit comments