File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -2217,8 +2217,12 @@ protected function _callApiPreparationsPost(
2217
2217
} elseif ($ this ->_detectBinaryBody ($ method_template )) {
2218
2218
// transform parametric headers to real headers
2219
2219
foreach ([
2220
- 'Content-Type ' , 'X-TON-Content-Type ' ,
2221
- 'X-TON-Content-Length ' , 'Content-Range '
2220
+ 'Content-Length ' ,
2221
+ 'Content-Range ' ,
2222
+ 'Content-Type ' ,
2223
+ 'X-TON-Content-Type ' ,
2224
+ 'X-TON-Content-Length ' ,
2225
+ 'X-TON-Expires '
2222
2226
] as $ key ) {
2223
2227
if (isset ($ params [$ key ])) {
2224
2228
$ request_headers [] = $ key . ': ' . $ params [$ key ];
@@ -2568,9 +2572,9 @@ protected function _parseApiHeaders($reply) {
2568
2572
*/
2569
2573
protected function _parseApiReplyPrefillHeaders ($ headers , $ reply )
2570
2574
{
2571
- if ($ reply === '' && (isset ($ headers ['Location ' ]))) {
2575
+ if ($ reply === '' && (isset ($ headers ['Location ' ]) || isset ( $ headers [ ' Location ' ]) )) {
2572
2576
$ reply = [
2573
- 'Location ' => $ headers ['Location ' ]
2577
+ 'Location ' => isset ( $ headers ['Location ' ]) ? $ headers [ ' Location ' ] : $ headers [ ' location ' ]
2574
2578
];
2575
2579
if (isset ($ headers ['X-TON-Min-Chunk-Size ' ])) {
2576
2580
$ reply ['X-TON-Min-Chunk-Size ' ] = $ headers ['X-TON-Min-Chunk-Size ' ];
You can’t perform that action at this time.
0 commit comments