Created
December 5, 2010 14:03
-
-
Save kakutani/729103 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/tdiary/dispatcher.rb b/tdiary/dispatcher.rb | |
index 4be53ca..ee8ef11 100644 | |
--- a/tdiary/dispatcher.rb | |
+++ b/tdiary/dispatcher.rb | |
@@ -96,7 +96,7 @@ module TDiary | |
body = tdiary.eval_rhtml | |
head['ETag'] = %Q["#{Digest::MD5.hexdigest( body )}"] | |
if ENV['HTTP_IF_NONE_MATCH'] == head['ETag'] and /^GET$/i =~ @cgi.request_method then | |
- head['status'] = CGI::HTTP_STATUS['NOT_MODIFIED'] | |
+ status = CGI::HTTP_STATUS['NOT_MODIFIED'] | |
body = '' | |
else | |
head['charset'] = conf.encoding |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment