ESoupSession: Accept also compressed responses
I'm trying to subscribe to Apple's US Holidays calendar: https://p33-calendars.icloud.com/holidays/us_en-us.ics
This works in several other iCal clients. However, evolution fails to sync the calendar and just gives a generic "Bad file format" error.
I've enabled debug logging for evolution-calendar-factory, and the output is the following:
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < HTTP/1.1 200 OK
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Soup-Debug-Timestamp: 1572546523
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Soup-Debug: SoupMessage 1 (0x7f367c005c70)
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Cache-Control: private
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Content-Type: text/calendar
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Server: Microsoft-IIS/8.5
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Date: Thu, 31 Oct 2019 18:28:43 GMT
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Connection: close
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: < Content-Length: 15660
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: <
Oct 31 10:29:33 titan evolution-calendar-factory[3474]:
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > GET /holidays/us_en-us.ics HTTP/1.1
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > Soup-Debug-Timestamp: 1572546573
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > Soup-Debug: ESoupSession 1 (0x7f3680045710), SoupMessage 2 (0x7f3664004680), SoupSocket 2 (0x7f366c007db0)
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > Host: p33-calendars.icloud.com
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > User-Agent: Evolution/3.34.1
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > Connection: close
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > Cache-Control: no-cache
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > Pragma: no-cache
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: > Accept-Language: en-us, en;q=0.9
Oct 31 10:29:33 titan evolution-calendar-factory[3474]:
Oct 31 10:29:33 titan evolution-calendar-factory[3474]: [3B blob data]