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 cd5155d commit 6178519Copy full SHA for 6178519
src/common/accept_ranges.rs
@@ -1,5 +1,3 @@
1
-use http::HeaderValue;
2
-
3
use util::FlatCsv;
4
5
/// `Accept-Ranges` header, defined in [RFC7233](http://tools.ietf.org/html/rfc7233#section-2.3)
@@ -36,12 +34,12 @@ derive_header! {
36
34
name: ACCEPT_RANGES
37
35
}
38
39
-const ACCEPT_RANGES_BYTES: HeaderValue = ::HeaderValue::from_static("bytes");
+const ACCEPT_RANGES_BYTES: &str = "bytes";
40
41
impl AcceptRanges {
42
/// A constructor to easily create the common `Accept-Ranges: bytes` header.
43
pub fn bytes() -> Self {
44
- AcceptRanges(ACCEPT_RANGES_BYTES.into())
+ AcceptRanges(::HeaderValue::from_static(ACCEPT_RANGES_BYTES).into())
45
46
47
/// Check if the unit is `bytes`.
0 commit comments