Guest User

Untitled

a guest
Jul 16th, 2018
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.54 KB | None | 0 0
  1. diff --git a/tdiary/dispatcher.rb b/tdiary/dispatcher.rb
  2. index 4be53ca..ee8ef11 100644
  3. --- a/tdiary/dispatcher.rb
  4. +++ b/tdiary/dispatcher.rb
  5. @@ -96,7 +96,7 @@ module TDiary
  6. body = tdiary.eval_rhtml
  7. head['ETag'] = %Q["#{Digest::MD5.hexdigest( body )}"]
  8. if ENV['HTTP_IF_NONE_MATCH'] == head['ETag'] and /^GET$/i =~ @cgi.request_method then
  9. - head['status'] = CGI::HTTP_STATUS['NOT_MODIFIED']
  10. + status = CGI::HTTP_STATUS['NOT_MODIFIED']
  11. body = ''
  12. else
  13. head['charset'] = conf.encoding
Add Comment
Please, Sign In to add comment