diff options
author | Yuchen Wu <[email protected]> | 2024-09-24 09:18:19 -0700 |
---|---|---|
committer | Yuchen Wu <[email protected]> | 2024-10-11 15:40:59 -0700 |
commit | 44175e31774dfb74df902e3eb18f7f32a2601abf (patch) | |
tree | 2e2c670745bc127feadfaf138093e3a43f880884 | |
parent | ab1b717bf587723c1c537d6549a8f8096f0900d4 (diff) | |
download | pingora-44175e31774dfb74df902e3eb18f7f32a2601abf.tar.gz pingora-44175e31774dfb74df902e3eb18f7f32a2601abf.zip |
Rust 1.81
-rw-r--r-- | .bleep | 2 | ||||
-rw-r--r-- | pingora-cache/src/cache_control.rs | 4 |
2 files changed, 3 insertions, 3 deletions
@@ -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[..]) } |