mirror of
https://github.com/friendica/friendica
synced 2025-04-24 13:10:11 +00:00
Make the content type available after calling fetch_url
This commit is contained in:
parent
cda327a368
commit
5b158dbcfb
2 changed files with 10 additions and 0 deletions
|
@ -101,6 +101,7 @@ function fetch_url($url,$binary = false, &$redirects = 0, $timeout = 0, $accept_
|
|||
}
|
||||
|
||||
$a->set_curl_code($http_code);
|
||||
$a->set_curl_content_type($curl_info['content_type']);
|
||||
|
||||
$body = substr($s,strlen($header));
|
||||
$a->set_curl_headers($header);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue