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  a1adb2e   Fix comments to refer to etag
a1adb2e is described below

commit a1adb2e70e747f85607d9622c7a8086fb2761269
Author: Sebb <s...@apache.org>
AuthorDate: Sun May 28 23:21:33 2017 +0100

    Fix comments to refer to etag
---
 www/events/other.cgi | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git a/www/events/other.cgi b/www/events/other.cgi
index 7f37795..83120d5 100755
--- a/www/events/other.cgi
+++ b/www/events/other.cgi
@@ -94,7 +94,7 @@ class Cache
     end
   end
 
-  # return age, last-modified, uri, data
+  # return age, etag, uri, data
   def read_cache(id)
     path = makepath(id)
     mtime = File.stat(path).mtime rescue nil
@@ -106,9 +106,6 @@ class Cache
         etag = io.gets.chomp
         uri = URI.parse(io.gets.chomp)
         data = io.read
-#       Fri, 12 May 2017 14:10:23 GMT
-#       123456789012345678901234567890
-#        etag = nil unless last.length > 25
       end
     end
     return Time.now - (mtime ? mtime : Time.new(0)), etag, uri, data

-- 
To stop receiving notification emails like this one, please contact
['"commits@whimsical.apache.org" <commits@whimsical.apache.org>'].

Reply via email to