premailer / css_parser

Ruby CSS Parser
Other
279 stars 110 forks source link

Added support for http status code redirects #36

Closed miafoo closed 8 years ago

miafoo commented 12 years ago

Requests the new URL instead. This might need some polishing or modifications.

Edit: To elaborate, I was scraping some HTML pages for stylesheets and tried to parse the files. On a certain site, I received a status code 302. The stylesheet had been moved, and css_parser threw an error. This patch requests the new location instead and returns that.

grosser commented 11 years ago

If you add a test (for 301 and 302) I'll merge it!