[mythtv-commits] [MythTV/mythtv] 72e8a5: HTTP Headers are not case sensitive
Stuart Auchterlonie
noreply at github.com
Tue Jan 11 20:43:51 UTC 2022
Branch: refs/heads/master
Home: https://github.com/MythTV/mythtv
Commit: 72e8a5465a17177d9dc3e408ef7ff70f92c77009
https://github.com/MythTV/mythtv/commit/72e8a5465a17177d9dc3e408ef7ff70f92c77009
Author: Stuart Auchterlonie <stuarta at mythtv.org>
Date: 2022-01-11 (Tue, 11 Jan 2022)
Changed paths:
M mythtv/libs/libmythbase/http/mythhttpparser.cpp
Log Message:
-----------
HTTP Headers are not case sensitive
Some clients send the headers in mixed case and
some send the headers in lowercase.
In the case of the backend web app (written in Angular)
the 'content-length' header was being sent in lowercase
which failed the comparison with 'Content-Length'. This
lead to the body of the request not being parsed and as
a result API calls were missing their parameters and
throwing errors.
More information about the mythtv-commits
mailing list