1. 15 8月, 2019 1 次提交
  2. 22 1月, 2018 1 次提交
  3. 29 7月, 2017 1 次提交
  4. 02 7月, 2017 1 次提交
  5. 01 7月, 2017 1 次提交
  6. 30 5月, 2017 1 次提交
  7. 30 3月, 2017 1 次提交
    • J
      Do not include default response headers for AC::Metal · 9d695743
      Jon Moss 提交于
      In Rails 4.2, `ActionController::Metal` controllers did not include the
      default headers from `ActionDispatch::Response`. However, through e16afe61, and a
      general shift towards having `ActionController::Metal` objects contain
      `ActionDispatch::Response` objects (instead of just returning an array
      of status, headers, and body), this behavior was lost. This PR helps to
      restore the original behavior by having `ActionController::Metal`
      controllers generate Response objects without the default headers, while
      `ActionController::Base` now overrides the factory method to make sure
      its version does have the default headers.
      9d695743
  8. 12 3月, 2017 1 次提交
  9. 04 1月, 2017 2 次提交
  10. 22 12月, 2016 1 次提交
    • A
      Document and update API for `skip_parameter_encoding` · 2eb0a663
      Aaron Patterson 提交于
      This commit changes `parameter_encoding` to `skip_parameter_encoding`.
      `skip_parameter_encoding` will set encoding on all parameters to
      ASCII-8BIT for a given action on a particular controller.  This allows
      the controller to handle data when the encoding of that data is unknown,
      for example file systems or truly binary parameters.
      2eb0a663
  11. 10 10月, 2016 1 次提交
  12. 10 8月, 2016 1 次提交
  13. 07 8月, 2016 3 次提交
  14. 18 2月, 2016 1 次提交
    • A
      partially revert 69009f44 · 844fb632
      Aaron Patterson 提交于
      we need to continue setting the body on the request object because of
      Fiber based streaming templates.  Fixes #23659
      844fb632
  15. 30 1月, 2016 1 次提交
    • E
      Handle response_body= when body is nil · c4d85dfb
      eileencodes 提交于
      There are some cases when the `body` in `response_body=` can be set to
      nil. One of those cases is in `actionpack-action_caching` which I found
      while upgrading it for Rails 5.
      
      It's not possible to run `body.each` on a `nil` body so we have to
      return after we run `response.reset_body!`.
      c4d85dfb
  16. 18 11月, 2015 1 次提交
  17. 20 10月, 2015 1 次提交
  18. 06 10月, 2015 1 次提交
    • A
      move file sending to the response object · 69009f44
      Aaron Patterson 提交于
      Just a slight refactor that delegates file sending to the response
      object.  This gives us the advantage that if a webserver (in the future)
      provides a response object that knows how to do accelerated file
      serving, it can implement this method.
      69009f44
  19. 26 9月, 2015 1 次提交
  20. 24 9月, 2015 1 次提交
    • A
      stop applying default headers in ActionDispatch::Response · e16afe61
      Aaron Patterson 提交于
      I'm making this change so that I can construct response objects that
      *don't* have the default headers applied.  For example, I would like to
      construct a response object from the return value of a controller.
      
      If you need to construct a response object with the default headers,
      then please use the alternate constructor:
      `ActionDispatch::Response.create`
      e16afe61
  21. 15 9月, 2015 1 次提交
  22. 27 8月, 2015 7 次提交
  23. 26 8月, 2015 3 次提交
  24. 08 8月, 2015 6 次提交