aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_controller/metal/head.rb
Commit message (Collapse)AuthorAgeFilesLines
* charset should not be appended for `head` responsesYves Senn2012-12-311-0/+1
| | | | | | | 1) Failure: test_head_created_with_image_png_content_type(RenderTest) [test/controller/render_test.rb:1238]: Expected: "image/png" Actual: "image/png; charset=utf-8"
* Multiple changes to 1,9 hash syntaxAvnerCohen2012-10-271-2/+2
|
* Collapsed dual checks (one for content headers and one for content) into a ↵Armand du Plessis2012-08-021-4/+4
| | | | | | | | | | | | single check. Rails includes a single character body to a head(:no_content) response to work around an old Safari bug where headers were ignored if no body sent. This patch brings the behavior slightly closer to spec if :no_content/204 is explicity requested via a head only response. Status comparison done on symbolic and numeric values Not returning any content when responding with head and limited to a status code that explicitly states no content will be returned - 100..199, 204, 205, 304.
* If content_type is explicitly passed to the :head method use the value or ↵Kunal Shah2012-05-081-1/+2
| | | | fallback
* Remove content-length as welltwinturbo2012-05-031-2/+3
|
* Make ActionController#head pass rack-linktwinturbo2012-05-031-1/+20
|
* Add ActionController#head exampleAlexey Vakhov2011-10-111-0/+2
|
* Fix a few bugs when trying to use Head standalonewycats2010-10-101-4/+2
|
* Fix header capitalization by explicitly upcasing first letter of every word, ↵Maxim Chernyak2010-09-181-1/+1
| | | | and avoiding capitalize. [#5636 state:resolved]
* Including UrlFor in Redirecting and Head will warn usefully if a controller ↵Carlhuda2010-02-261-3/+2
| | | | is wired up without a router included (and still support redirect_to "omg")
* WIP: Remove the global routerCarlhuda2010-02-251-1/+3
|
* Remove duplicated url_for code and move methods shared between ActionMailer ↵José Valim2010-01-071-1/+2
| | | | and ActionController up to AbstractController.
* AC::Head now doesn't have an unfulfilled Rendering dependency, and instead ↵Yehuda Katz2009-12-201-1/+6
| | | | works just fine standalone (which means that ConditionalGet also doesn't have a Rendering dependency)
* Extract #head into its own module and simplify itYehuda Katz2009-10-261-0/+27