Skip to content

Instantly share code, notes, and snippets.

@kakutani
Created December 5, 2010 14:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kakutani/729103 to your computer and use it in GitHub Desktop.
Save kakutani/729103 to your computer and use it in GitHub Desktop.
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