Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add Request#formats=(extensions) that lets you set multiple formats directly ↵ | David Heinemeier Hansson | 2012-08-14 | 1 | -0/+21 |
| | | | | in a prioritized order | ||||
* | Add missing requires in routes | Bogdan Gusiev | 2012-04-23 | 1 | -0/+2 |
| | |||||
* | Check Accept and Content-Type headers before evaluating them in xhr ↵ | ogeidix | 2011-07-19 | 1 | -1/+2 |
| | | | | | | requests. Closes #2119 An xhr request must have an "Accept" or "Content-type" header in order to be considered a request with valid_accept_header. | ||||
* | Add ignore_accept_header config to AD::Request. | José Valim | 2011-05-02 | 1 | -5/+22 |
| | |||||
* | declare regex as a constant | Neeraj Singh | 2010-11-22 | 1 | -1/+3 |
| | | | | Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | do not assume that there is no space between | Neeraj Singh | 2010-11-22 | 1 | -1/+1 |
| | | | | | | leading */* and comma Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | current code ignores http header "Accept" if it | Neeraj Singh | 2010-11-22 | 1 | -1/+1 |
| | | | | | | | | | | | has ....,*/* . It is possible to a device to send request such that */* appear at the beginning of the "Accept" header. This patch ensures that "Accept" header is ignored for such cases too. Signed-off-by: José Valim <jose.valim@gmail.com> | ||||
* | use_accept_header is no longer supported | Neeraj Singh | 2010-11-21 | 1 | -1/+1 |
| | |||||
* | escape constants that should not be linked to | Joost Baaij | 2010-08-27 | 1 | -1/+1 |
| | |||||
* | Slightly less annoying check for acceptable mime_types. This allows Accept: ↵ | Paul Sadauskas | 2010-04-01 | 1 | -2/+2 |
| | | | | application/json, application/jsonp (and the like), but still blacklists browsers. Essentially, we use normal content negotiation unless you include */* in your list, in which case we assume you're a browser and send HTML [#3541 state:resolved] | ||||
* | Request#content_type exists in Rack::Request, and other parts of ↵ | wycats | 2010-03-28 | 1 | -2/+6 |
| | | | | | | Rack::Request expect it to return a String. Split the Rails API so that Request#content_type returns a String, and Request#content_mime_type returns a Mime::Type object. | ||||
* | Remove uneeded methods. | José Valim | 2010-03-10 | 1 | -15/+0 |
| | |||||
* | Split ActionDispatch http in smaller chunks. | José Valim | 2010-01-16 | 1 | -0/+101 |