scottmac / opengraph

Helper class for accessing the OpenGraph Protocol
463 stars 151 forks source link

Add fallback for compressed html? #12

Open VincentCohen opened 11 years ago

VincentCohen commented 11 years ago

I tried using OpeGraph but it kept on failing. Eventually I found out that the HTML that was fetched by the inserted url was actually compressed in gzip.

I fixed it temporarily and dirty by checking if the string "gzip" was present in the html and then run gzdecode() on the html..