]> git.ipfire.org Git - thirdparty/asterisk.git/commit
res_calendar_icalendar: Send user agent in request.
authorNaveen Albert <asterisk@phreaknet.org>
Mon, 20 Jun 2022 21:00:17 +0000 (21:00 +0000)
committerKevin Harwell <kharwell@digium.com>
Fri, 1 Jul 2022 14:58:25 +0000 (09:58 -0500)
commit53d921a19959018eaac1f98c59c6811d2a316294
treefc52c1ee5d6e632b6c3c1dddae3aaa5c0802712a
parent57d66966a159a6e5af246a5266566c8300018a09
res_calendar_icalendar: Send user agent in request.

Microsoft recently began rejecting all requests for
ICS calendars on Office 365 with 400 errors if
the request doesn't contain a user agent. See:

https://docs.microsoft.com/en-us/answers/questions/883904/34the-remote-server-returned-an-error-400-bad-requ.html

Accordingly, we now send a user agent on requests for
ICS files so that requests to Office 365 will work as
they did before.

ASTERISK-30106

Change-Id: Ie9dcaef12ae8adf37533c684499eb11005fac8f7
res/res_calendar_icalendar.c