aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--.bleep2
-rw-r--r--pingora-cache/src/cache_control.rs4
2 files changed, 3 insertions, 3 deletions
diff --git a/.bleep b/.bleep
index ccd7920..78c2050 100644
--- a/.bleep
+++ b/.bleep
@@ -1 +1 @@
-db1062544ff6061f40cf33801b12a8c407c0d574 \ No newline at end of file
+ec598a02b75ba411b1e1b3ea347e1d3c71b555d2 \ No newline at end of file
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[..])
}