提交 cd630155 编写于 作者: J Joshua Peek

All 2xx requests are considered successful [#217 state:resolved]

上级 f7fdbae7
*Edge* *Edge*
* All 2xx requests are considered successful [Josh Peek]
* Fixed that AssetTagHelper#compute_public_path shouldn't cache the asset_host along with the source or per-request proc's won't run [DHH] * Fixed that AssetTagHelper#compute_public_path shouldn't cache the asset_host along with the source or per-request proc's won't run [DHH]
* Removed config.action_view.cache_template_loading, use config.cache_classes instead [Josh Peek] * Removed config.action_view.cache_template_loading, use config.cache_classes instead [Josh Peek]
......
...@@ -171,7 +171,7 @@ def message ...@@ -171,7 +171,7 @@ def message
# Was the response successful? # Was the response successful?
def success? def success?
response_code == 200 (200..299).include?(response_code)
end end
# Was the URL not found? # Was the URL not found?
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册