LeaVerou / dabblet

An interactive CSS playground
http://dabblet.com
817 stars 147 forks source link

issue#193 fixed #239

Closed haroonabbasi closed 10 years ago

haroonabbasi commented 10 years ago

issue#193 fixed by replacing get_file_content for curl call with user-agent header(Requested by Github otherwise error thrown by API User-Agent Required). Issue Detail: When you fetch try to fetch URL content with file_get_content. Your not sending the User-Agent Header which is requested by Github API. Following is the Response Error Message. Error Response:"Request forbidden by administrative rules. Please make sure your request has a User-Agent header (http://developer.github.com/v3/#user-agent-required). Check https://developer.github.com for other possible causes.'"

LeaVerou commented 10 years ago

Whoa, have you tested this? That's the most annoying bug in dabblet, can't believe I missed this PR!! Thank you so much!

LeaVerou commented 10 years ago

I merged it and, bloody hell, it works!!!! Thank you so, so much!!!!!!

haroonabbasi commented 10 years ago

No Problem, thanks for getting back. But of course for once i thought may be didn't liked my solution :)