Skip to content

Commit e411d9a

Browse files
committed
[BUGFIX] DP-460
- Get rid of invalid 'CURLINFO_EFFECTIVE_URL' cURL option - Get rid of improper 'Content-Length' HTTP header
1 parent 86cfad8 commit e411d9a

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

src/org/apache/hadoop/tools/Curl.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ private function _findRedirectUrl($url, $options)
6363
{
6464
$options[CURLOPT_URL] = $url;
6565
$options[CURLOPT_HEADER] = true;
66-
$options[CURLINFO_EFFECTIVE_URL] = true;
6766
$options[CURLOPT_RETURNTRANSFER] = true;
6867
$header = $this->_exec($options);
6968
$matches = array();
@@ -221,8 +220,6 @@ private function _exec($options, $returnInfo = false)
221220
['Content-Length: '.strlen($options[CURLOPT_POSTFIELDS])]
222221
);
223222
}
224-
} else {
225-
$options[CURLOPT_HTTPHEADER] = array_merge($options[CURLOPT_HTTPHEADER], ['Content-Length: 0']);
226223
}
227224
}
228225

0 commit comments

Comments
 (0)