Jim Jones
4848bf321b
Added X-Content-Type-Options to the header defaults.
...
With a value of "nosniff", this prevents Internet Explorer from MIME-sniffing a response away from the declared content-type.
2012-08-18 15:29:58 -07:00
Egor Homakov
98c18d0058
some tests
2012-08-09 17:12:11 +03:00
Aaron Patterson
356787fce8
adding a buffered stream to the response object
2012-07-29 15:51:21 -07:00
Vladimir Strakhov
8b6301adbc
fix failure test 'test_can_wait_until_commit(ResponseTest)' in actionpack
2012-07-28 20:12:35 +04:00
Aaron Patterson
acb6848468
threads can wait on responses to be committed
2012-07-27 15:54:23 -07:00
Sergey Nartimov
5ca86ac8f9
deprecate String#encoding_aware? and remove its usage
2011-12-24 15:57:54 +03:00
Aaron Patterson
810837dda8
use Array#join so that file encoding doesn't impact returned string.
...
Fixes #3957
2011-12-12 19:45:16 -08:00
kennyj
a1986e7d55
Use default charset when we read content type without charset.
2011-12-07 12:35:44 +09:00
José Valim
a66c917235
Do not inherit from Rack::Response, remove a shit-ton of unused code.
2011-04-19 11:54:12 +02:00
Aaron Patterson
ea25224046
cleaning up some warnings on 1.9.3
2011-02-07 16:44:27 -08:00
Krekoten' Marjan
a75d21df06
Fix status initialization when custom status provided
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-10-18 17:34:22 -02:00
José Valim
74dd8a3681
Move ETag and ConditionalGet logic from AD::Response to the middleware stack.
2010-10-03 21:25:22 +02:00
Emilio Tagua
1ab2ab07b5
Remove more warnings shadowing outer local variable.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2010-09-27 16:43:17 -03:00
Emilio Tagua
583ddf22a2
Remove more warnings shadowing outer local variable.
2010-09-27 11:19:22 -03:00
José Valim
941b653627
Rely on set and delete cookie logic from rack.
2010-05-18 01:51:45 +02:00
Joshua Peek
7d7f9ccfdf
Reinstate pending tests that were supposed to be fixed before the
...
beta.
Shout louder this time so they actually get fixed.
2010-02-19 09:34:22 -06:00
Joshua Peek
d2d4acf027
Cookies middleware
2010-01-16 17:22:27 -06:00
Jeremy Kemper
24e1b55608
Fix bare string Rack response bodies
2009-12-23 13:06:53 -08:00
Joshua Peek
2419fae092
Pending tests for AD Response
2009-12-17 22:10:37 -06:00
Joshua Peek
3b44f35e24
Don't need response prepare!
2009-12-17 22:10:37 -06:00
Yehuda Katz
b53f006901
Remove legacy processing and content_length
...
* convert_content_type! is handled by assign_default_content_type_and_charset!
* set_content_length! should be handled by the endpoint server. Otherwise
each middleware that modifies the body has to do the expensive work of
recalculating content_length.
* convert_language! appears to be legacy. There are no tests for this
* convert_cookies! should be handled by the new HeaderHash in Rack
* Use an integer for .status's internal representation to avoid needing to
do String manipulation just to find out the status
2009-08-02 19:39:33 -04:00
Yehuda Katz
503ce1d01c
Update cache_control to be a Hash of options that is used to build the header.
...
* Significantly simplifies setting and modifying cache control in other areas
2009-08-02 19:39:33 -04:00
Joshua Peek
5352a2417b
Move useful response test helpers into request
2009-04-26 11:12:33 -05:00
Joshua Peek
dbbe2e74ff
Create a new file for response tests
2009-04-26 10:26:53 -05:00