Skip to content

Commit

Permalink
added miising compiledHeaders method
Browse files Browse the repository at this point in the history
  • Loading branch information
thousandsofthem committed Aug 5, 2014
1 parent 645c455 commit 73a44aa
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions IronCore.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,7 @@ protected function callWithRetries()
$this->reportHttpError(0, curl_error($this->curl));
}
$this->last_status = curl_getinfo($this->curl, CURLINFO_HTTP_CODE);
}
else {
} else {
try {
$_out = file_get_contents($this->urlFetchUrl, false, $this->urlFetchContext);
$responseHeader = explode(' ', $http_response_header[0]);
Expand Down Expand Up @@ -364,6 +363,15 @@ protected static function waitRandomInterval($retry)
usleep(rand(0, $max_delay));
}

protected function compiledHeaders()
{
if ($this->curlEnabled()) {
return $this->compiledCurlHeaders();
} else {
return $this->compiledUrlFetchHeaders();
}
}

protected function compiledCurlHeaders()
{
# Set default headers if no headers set.
Expand Down

0 comments on commit 73a44aa

Please sign in to comment.