aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Fischer <martin@push-f.com>2021-07-07 13:28:55 +0200
committerMartin Fischer <martin@push-f.com>2021-07-18 17:11:50 +0200
commit2a2af4b7b3450fa5cb092b06718ac59a9da9223e (patch)
tree189dbe0a066eeaf9a767dced99694298e8f481ba
parent25115f57b902d40470d0a8218391a53e99f96568 (diff)
support If-None-Match headers with W/ prefix
-rw-r--r--src/get_routes.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/get_routes.rs b/src/get_routes.rs
index a743292..ec46feb 100644
--- a/src/get_routes.rs
+++ b/src/get_routes.rs
@@ -318,7 +318,7 @@ fn build_raw_response(
.get(header::IF_NONE_MATCH)
.and_then(|v| v.to_str().ok())
{
- if etag.trim_matches('"') == entr.id().to_string() {
+ if etag.trim_start_matches("W/").trim_matches('"') == entr.id().to_string() {
return Err(Error::NotModified);
}
}