- 07 10月, 2015 1 次提交
-
-
由 Jeremy Daer 提交于
Rails 4.x and earlier didn't support `Mime::Type[:FOO]`, so libraries that support multiple Rails versions would've had to feature-detect whether to use `Mime::Type[:FOO]` or `Mime::FOO`. `Mime[:foo]` has been around for ages to look up registered MIME types by symbol / extension, though, so libraries and plugins can safely switch to that without breaking backward- or forward-compatibility. Note: `Mime::ALL` isn't a real MIME type and isn't registered for lookup by type or extension, so it's not available as `Mime[:all]`. We use it internally as a wildcard for `respond_to` negotiation. If you use this internal constant, continue to reference it with `Mime::ALL`. Ref. efc6dd55
-
- 24 9月, 2015 1 次提交
-
-
由 Eliot Sykes 提交于
-
- 23 9月, 2015 1 次提交
-
-
由 amitkumarsuroliya 提交于
As we all know that Accessing mime types via constants is deprecated. Now, we are using `Mime::Type[:JSON]` instead of `Mime::JSON`
-
- 30 8月, 2015 2 次提交
-
-
由 Aaron Patterson 提交于
-
由 Aaron Patterson 提交于
-
- 12 8月, 2015 1 次提交
-
-
由 Dennis Suratna 提交于
-
- 18 7月, 2015 1 次提交
-
-
由 Prem Sichanugrist 提交于
This will silence deprecation warnings. Most of the test can be changed from `render :text` to render `:plain` or `render :body` right away. However, there are some tests that needed to be fixed by hand as they actually assert the default Content-Type returned from `render :body`.
-
- 14 6月, 2015 1 次提交
-
-
由 Prathamesh Sonpatki 提交于
-
- 01 6月, 2015 1 次提交
-
-
由 phoet 提交于
-
- 04 5月, 2015 1 次提交
-
-
由 Keenan Brock 提交于
Digest allowed the messages. Add the same feature to basic and token
-
- 14 4月, 2015 1 次提交
-
-
由 Strech (Sergey Fedorov) 提交于
-
- 02 4月, 2015 2 次提交
-
-
由 brainopia 提交于
-
由 brainopia 提交于
https://github.com/ruby/ruby/pull/579 - there is a new optimization since ruby 2.2 Previously regexp patterns were faster (since a string was converted to regexp underneath anyway). But now string patterns are faster and better reflect the purpose. Benchmark.ips do |bm| bm.report('regexp') { 'this is ::a random string'.gsub(/::/, '/') } bm.report('string') { 'this is ::a random string'.gsub('::', '/') } bm.compare! end # string: 753724.4 i/s # regexp: 501443.1 i/s - 1.50x slower
-
- 05 3月, 2015 1 次提交
-
-
- 24 1月, 2015 1 次提交
-
-
由 Zhang Kai Yu 提交于
-
- 29 12月, 2014 2 次提交
-
-
由 Robin Dupret 提交于
-
由 Ben Prew 提交于
Example does not work with session headers, should use request headers. [ci skip]
-
- 21 11月, 2014 1 次提交
-
-
由 claudiob 提交于
I grepped the source code for code snippets wrapped in backticks in the comments and replaced the backticks with plus signs so they are correctly displayed in the Rails documentation. [ci skip]
-
- 10 10月, 2014 1 次提交
-
-
由 Guo Xiang Tan 提交于
Fixes: https://github.com/rails/rails/issues/17108.
-
- 02 7月, 2014 1 次提交
-
-
由 Xinjiang Lu 提交于
add a test case to test the regex for the helper method raw_params
-
- 13 6月, 2014 2 次提交
-
-
由 Larry Lv 提交于
-
由 Guillermo Iguaran 提交于
The 401 status should be set first because setting the response body in a live controller also closes the response to further changes. Fixes #14229.
-
- 29 3月, 2014 1 次提交
-
-
由 Kelley Reynolds 提交于
-
- 27 2月, 2014 1 次提交
-
-
由 Tyler Hunt 提交于
The HTTP spec allows for LWS to precede the header content, which could include multiple SP and HT characters. Update the regex used to match the Token authorization header to account for this, instead of matching on a single SP. See http://www.w3.org/Protocols/rfc2616/rfc2616-sec2.html and http://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html for the relevant parts of the specification.
-
- 19 2月, 2014 1 次提交
-
-
由 robertomiranda 提交于
ref #14062
-
- 08 7月, 2013 1 次提交
-
-
由 tomykaira 提交于
-
- 07 7月, 2013 1 次提交
-
-
由 tomykaira 提交于
`authenticate_with_http_basic` and its families should check the authentication schema is "Basic". Different schema, such as OAuth2 Bearer should be rejected by basic auth, but it was passing as the test shows. This fixes #10257.
-
- 03 4月, 2013 1 次提交
-
-
由 Sam Ruby 提交于
-
- 19 3月, 2013 1 次提交
-
-
由 Brad Dunbar 提交于
-
- 18 1月, 2013 2 次提交
-
-
由 Guillermo Iguaran 提交于
This reverts commit 637a7d9d, reversing changes made to 5937bd02.
-
由 robertomiranda 提交于
-
- 07 1月, 2013 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 24 12月, 2012 1 次提交
-
-
由 Akira Matsuda 提交于
-
- 16 12月, 2012 1 次提交
-
-
由 Kurtis Rainbolt-Greene 提交于
Adding a test for the equal trun bug Adding a test for the after equal trunc bug Adding a test for the slash bug Adding a test for the slash quote bug Adding a helper method for creating a sample request object with token Writing a method to create params array from raw params Writing a method to rewrite param values in the params Writing a method to get the token params from an authorization value Refactoring the token_and_options method to fix bugs Removing unnessecary test A constant for this shared regex seemed appropriate Wanting to split up this logic Adding small documentation pieces
-
- 08 12月, 2012 1 次提交
-
-
由 Francesco Rodriguez 提交于
-
- 04 11月, 2012 2 次提交
-
-
由 Santiago Pastorino 提交于
-
由 Santiago Pastorino 提交于
-
- 28 10月, 2012 1 次提交
-
-
由 AvnerCohen 提交于
-
- 03 8月, 2012 2 次提交
-
-
由 Xavier Noria 提交于
-
由 Arthur Smith 提交于
-