aboutsummaryrefslogtreecommitdiffhomepage
path: root/pingora-cache/src/cache_control.rs
diff options
context:
space:
mode:
Diffstat (limited to 'pingora-cache/src/cache_control.rs')
-rw-r--r--pingora-cache/src/cache_control.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/pingora-cache/src/cache_control.rs b/pingora-cache/src/cache_control.rs
index 3934a93..46553fb 100644
--- a/pingora-cache/src/cache_control.rs
+++ b/pingora-cache/src/cache_control.rs
@@ -51,8 +51,8 @@ impl DirectiveValue {
/// A [DirectiveValue] without quotes (`"`).
pub fn parse_as_bytes(&self) -> &[u8] {
self.0
- .strip_prefix(&[b'"'])
- .and_then(|bytes| bytes.strip_suffix(&[b'"']))
+ .strip_prefix(b"\"")
+ .and_then(|bytes| bytes.strip_suffix(b"\""))
.unwrap_or(&self.0[..])
}