gothfox/Tiny-Tiny-RSS — pull request #143 by mbirth (2013-04-09 23:08:24+00:00)
Title: Return Content-Type with fetch_file_contents()

I needed to get the Content-Type of a fetched document (to get the correct encoding for parsing). I added a global variable `$fetch_last_content_type` which gets set to the value of the `Content-Type` header from the last HTTP operation. This works for curl() and file_get_contents() calls the same way.