20 Commits

Author SHA1 Message Date
52e4a3e645 release version 2.0.50 2024-05-30 20:23:31 +03:00
e2a167028b Upgrade to PSR12 coding standard (#20121) 2024-03-19 17:21:27 +03:00
161526cd41 HTTPS everywhere (#19503) 2022-08-03 12:32:18 +03:00
7ebaaf0216 Fix #18789: Added JSONP support in yii\web\JsonParser::parse() 2021-08-07 15:31:35 +03:00
0d87c339f2 dropped deprecated exception (#16328) 2018-05-30 00:13:31 +03:00
5a8c3d537b Enable phpdoc_summary rule in php-cs-fixer config (#14675)
* Enable `phpdoc_summary` rule in php-cs-fixer config.

* Fix case in "PHPDoc".
2017-08-21 11:19:35 +02:00
1501c659ac Add empty lines before return statements. (#14682) [skip ci] 2017-08-21 01:58:49 +03:00
4aa935e69e Fixes #12055: Changed boolean to bool and integer to int in phpdoc 2016-11-07 02:51:39 +03:00
6dd017c2a3 Additional fix for #10617 2016-04-22 16:51:54 +03:00
77996374a4 Fixes #10617: Fixed yii\web\Request::getBodyParams() returned null instead of empty array if request body is empty and content type is application/json 2016-04-12 02:32:00 +03:00
5a069d1a3c Fixed inappropriate error response on invalid JSON request
Current API responds to invalid JSON with:

```json
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
...

{"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400,"previous":{"name":"Internal Server Error","message":"There was an error at the server.","code":0,"status":500}}
```

While it should be

```json
HTTP/1.1 400 Bad Request
Content-Type: application/json; charset=UTF-8
...

{"name":"Bad Request","message":"Invalid JSON data in request body: Syntax error.","code":0,"status":400}
```
2015-09-02 23:10:38 +02:00
3a1e0f3a5c property codestyle framework 2014-07-30 00:21:31 +02:00
00614b465b docs about JsonParser 2014-03-27 14:24:59 +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
9630c807a7 doc link fixes 2014-01-23 12:04:02 +01:00
813a008da2 improved request body parser docs and configuration
added a fallback for handling all request types

fixes #2066, related to #2043
2014-01-20 12:51:43 +01:00
7c98ef591c Fixed type in JsonParser 2014-01-19 14:51:16 -08:00
1026b9da57 Tabs vs. spaces 2014-01-19 14:48:35 -08:00
7f8850bc70 Adds customizable parsing functionality to the web\Request class (Issue #2043) 2014-01-19 14:36:10 -08:00