提交 ec18719b 编写于 作者: J Jeremy Kemper

ETag: use body instead of @body since the method will always return a string

上级 b2633f9f
......@@ -89,7 +89,7 @@ def handle_conditional_get!
if etag? || last_modified? || !@cache_control.empty?
set_conditional_cache_control!
elsif nonempty_ok_response?
self.etag = @body
self.etag = body
if request && request.etag_matches?(etag)
self.status = 304
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册