We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 86cfad8 commit e411d9aCopy full SHA for e411d9a
src/org/apache/hadoop/tools/Curl.php
@@ -63,7 +63,6 @@ private function _findRedirectUrl($url, $options)
63
{
64
$options[CURLOPT_URL] = $url;
65
$options[CURLOPT_HEADER] = true;
66
- $options[CURLINFO_EFFECTIVE_URL] = true;
67
$options[CURLOPT_RETURNTRANSFER] = true;
68
$header = $this->_exec($options);
69
$matches = array();
@@ -221,8 +220,6 @@ private function _exec($options, $returnInfo = false)
221
220
['Content-Length: '.strlen($options[CURLOPT_POSTFIELDS])]
222
);
223
}
224
- } else {
225
- $options[CURLOPT_HTTPHEADER] = array_merge($options[CURLOPT_HTTPHEADER], ['Content-Length: 0']);
226
227
228
0 commit comments