This is an automated email from the ASF dual-hosted git repository.

sebb pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/whimsy.git


The following commit(s) were added to refs/heads/master by this push:
     new 974b73b8 No longer need to allow for the bug
974b73b8 is described below

commit 974b73b8b27f62372f9bd346305a013d065ed1cd
Author: Sebb <s...@apache.org>
AuthorDate: Thu May 9 17:25:53 2024 +0100

    No longer need to allow for the bug
---
 lib/whimsy/cache.rb | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/whimsy/cache.rb b/lib/whimsy/cache.rb
index a3103c19..420e17db 100644
--- a/lib/whimsy/cache.rb
+++ b/lib/whimsy/cache.rb
@@ -61,8 +61,7 @@ class Cache
     if data and (lastmod or etag)
       cond = {}
       cond['If-Modified-Since'] = lastmod if lastmod
-      # Allow for Apache Bug 45023
-      cond['If-None-Match'] = etag.gsub(/-gzip"$/,'"') if etag
+      cond['If-None-Match'] = etag if etag
       uri, res = fetch(url, cond)
       if res.is_a?(Net::HTTPSuccess)
         write_cache(url, res)
@@ -111,6 +110,7 @@ class Cache
       options.each do |k,v|
         request[k] = v
       end
+      Wunderbar.debug "Request: #{request.to_hash.inspect}"
       response = http.request(request)
       Wunderbar.debug "Headers: #{response.to_hash.inspect}"
       Wunderbar.debug response.code

Reply via email to