71 Commits

Author SHA1 Message Date
57ab949be5 Response::redirect() uses 200 status code if 'X-Ie-Redirect-Compatibility' header sent 2016-01-08 16:32:09 +02:00
019587e544 yii\web\Response - fixed comparation bug introduced in #9670 2016-01-08 14:44:35 +02:00
dc93ec3812 Bug #9670: Fixed PJAX redirect in IE 2015-12-26 10:19:22 +02:00
d9f8933737 added prettyPrint option to JsonResponseFormatter
fixes #9762
close #10412
2015-12-18 02:42:59 +01:00
603092db28 \yii\web\Response::sendHeaders() does not send status header last
to avoid php magic about Location: header to take effect.

Fixes #9412
close #9485
2015-12-17 06:13:41 +01:00
cd87d67f34 Global DOCS update: ~~~ replaced with ``` 2015-12-02 23:15:28 +02:00
5ab4f0f090 Better quotes usage in strings
- Use single quote where interpolation isn't necessary
- Use interpolation when it's better than concatenation
2015-10-10 00:23:52 +03:00
6d9fe671de various code style and whitespace adjustments 2015-08-02 00:27:19 +02:00
9e3d28a3d9 Fix spelling 2015-06-29 23:13:15 +03:00
67658cf57d Replaced static with $this in phpdoc since current IDEs are finally able to handle it correctly 2015-05-31 13:39:30 +03:00
886e99be11 Fixed yii\web\Response::xSendFile() does not reset format 2015-05-29 16:29:06 +03:00
9a5abd923f cleanup after #8171 2015-04-24 15:28:57 +02:00
be6c619de9 Fixes #8171: Allow the user to enforce the fileSize to allow sending files which are not seekable. Needed when using S3 Stream Wrapper 2015-04-24 14:30:30 +03:00
1981a620d1 Merge pull request #7660 from creocoder/response-optimization
Light Response refactoring
2015-04-20 15:10:18 +03:00
748e68f98d Fixing broken doc links to ContentNegotiator 2015-03-30 23:23:38 -05:00
4e8197e43f Light Response refactoring 2015-03-10 22:51:44 +03:00
0eecb6ab1e Fixes #7529: Fixed yii\web\Response::sendContentAsFile() that was broken in 2.0.3 2015-03-04 00:41:44 +03:00
07403d3f9d Fixes #3723: yii\filters\PageCache now supports caching response headers as well as non-HTML response content 2015-02-21 19:45:44 -05:00
9028bc5aa7 Fixed header Content-Type when response is empty 2015-02-21 02:05:03 +03:00
0a6cd6190b Fixes #7051: Added support for preventing swapping values between different cookies 2015-01-28 22:29:37 -05:00
0b4896929b Fixed content-length in sendContentAsFile()
Fixed wrong Content-Length header when sending file using Response::sendContentAsFile().
2015-01-25 20:07:11 -05:00
96c4ec88ca Fixes #6889 doc fix [skip ci] 2015-01-17 19:12:48 -05:00
0cf4e7494f Removed Content-Transfer-Encoding from the list of default download headers
`Content-Transfer-Encoding` is not a valid HTTP header (cf [RFC 7230, section 3.3.1](http://tools.ietf.org/html/rfc7230#section-3.3.1), [RFC 7231, section 8.3](http://tools.ietf.org/html/rfc7231#section-8.3), [IANA Message Header Registry](http://www.iana.org/assignments/message-headers/message-headers.xhtml)). The correct HTTP pendant would be `Transfer-Encoding: identity`, which were entirely bogus.
2015-01-03 13:06:42 +01:00
875e2c3acb Fixes #4395: Added $checkAjax parameter to yii\web\Response::redirect() to support default redirection behavior for AJAX/PJAX requests 2014-12-03 10:07:09 -05:00
d2b864da84 prepare for 2.0.0-rc release. 2014-09-27 21:59:54 -04:00
b1e7c753ae Fixes #2702: added doc about customizing error response format [skip ci] 2014-09-07 12:40:50 -04:00
4832760604 Removed unused "use" statements 2014-09-07 15:46:54 +04:00
d6fd45079e typo fix. 2014-09-03 12:23:16 -04:00
fa0418f8a1 Fixes #4424: Added inline and mimeType options to all file downloading methods provided in yii\web\Response 2014-08-30 22:13:42 -04:00
fe36bc9ecd options parameter extracted at yii\web\Response::xSendFile() 2014-08-19 16:31:42 +03:00
e3cea2138a Added forceDownload parameter to yii\web\Response::xSendFile() 2014-08-19 12:18:35 +03:00
88d38b7820 Fixes #4501: Renamed the constant YII_PATH to YII2_PATH 2014-08-14 22:17:05 -04:00
c6c29db9b4 Fixes #4636: Added yii\web\Response::setDownloadHeaders() 2014-08-14 22:01:10 -04:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
4e4e76e883 Request::cookieValidationKey must be explicitly specified now. 2014-07-19 15:39:03 -04:00
2bab6259d1 'Security' helper usage switched to 'security' application component. 2014-06-27 14:31:08 +03:00
109c4b44bc attempt to fix multiple header issue
fixes #3893
2014-06-25 20:39:19 +02:00
c8f6baf5ba Update Response.php
typo
2014-05-26 17:23:11 +02:00
3829b3a5ad changed comments #3446 2014-05-12 20:35:35 +04:00
48635c2d3e Update Response.php
$_SERVER['SERVER_PROTOCOL'] returns 'HTTP/1.0' or 'HTTP/1.1'
2014-04-24 03:42:23 +03:00
664d2aa007 Supported adding a new response formatter without the need to reconfigure existing formatters 2014-04-16 14:55:33 -04:00
0b29c9607d fixed broken API links [skip ci] 2014-04-09 22:22:49 -04:00
134d3d4610 Fixes #2034: Added ContentNegotiator to support response format and language negotiation 2014-04-09 14:57:04 -04:00
c4af1569a3 typo fix [skip ci] 2014-04-08 21:03:11 -04:00
aec1b8172b Added HtmlResponseFormatter and JsonResponseFormatter 2014-04-08 20:54:07 -04:00
435747cf98 apidoc and codestyle fixes 2014-03-26 23:03:18 +01:00
bf3c75147d reverted breaking PHPdoc codestyle changes
issue #2852
2014-03-23 20:51:09 +01:00
b5f8a4dc22 Reformat code te be PSR-2 compatible 2014-03-16 10:46:21 +06:00
ca3b2cd057 Fix some references to removed Html::url in phpdoc 2014-03-11 11:15:21 +01:00
5d6c314d4e Adjusted URL helper, fixed usage 2014-03-10 15:25:15 +04:00