File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ Yii Framework 2 HTTP client extension Change Log
442.0.14 under development
55------------------------
66
7- - no changes in this release.
7+ - Enh # 215 : Added possibility to skip charset in header on ` UrlEncodedFormatter::format() ` (egorrishe)
88
99
10102.0.13 December 23, 2020
Original file line number Diff line number Diff line change @@ -56,7 +56,8 @@ public function format(Request $request)
5656 }
5757
5858 $ charset = $ this ->charset === null ? Yii::$ app ->charset : $ this ->charset ;
59- $ request ->getHeaders ()->set ('Content-Type ' , 'application/x-www-form-urlencoded; charset= ' . $ charset );
59+ $ charset = $ charset ? '; charset= ' . $ charset : '' ;
60+ $ request ->getHeaders ()->set ('Content-Type ' , 'application/x-www-form-urlencoded ' . $ charset );
6061
6162 if (isset ($ content )) {
6263 $ request ->setContent ($ content );
@@ -68,4 +69,4 @@ public function format(Request $request)
6869
6970 return $ request ;
7071 }
71- }
72+ }
You can’t perform that action at this time.
0 commit comments