Make common syndication parser accept all supported encodings

tobiassjosten - October 13, 2009 - 19:32
Project:FeedAPI
Version:6.x-1.x-dev
Component:Code parser_common
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed
Description

By telling cURL to accept all the encodings it supports, we can make FeedAPI's Common syndication parser also read feeds that are, for example, gzipped. I recently had need for that and this minor patch is a result of getting it to work for my gz feeds.

For more information, see http://www.php.net/manual/en/function.curl-setopt.php.

AttachmentSize
feedapi-parser-common-accept-all-encodings.patch889 bytes

#1

Aron Novak - October 26, 2009 - 21:38
Status:needs review» reviewed & tested by the community

I love that such a small patch is enough to support compressed feeds :)

#2

Aron Novak - October 31, 2009 - 16:04
Status:reviewed & tested by the community» fixed

Committed. Thank you!

#3

alex_b - October 31, 2009 - 18:48

Great. We should port this to feeds, I added a case for it: #619838: http_request.inc: support all encodings (e. g. gzipped feeds)

#4

System Message - November 14, 2009 - 18:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.