[mythtv-commits] [MythTV/mythtv] 2855e2: UPnP Serializer: Eliminate false 304 response stat...
billmeek
noreply at github.com
Wed Oct 16 14:58:03 UTC 2019
Branch: refs/heads/fixes/30
Home: https://github.com/MythTV/mythtv
Commit: 2855e2967209b8cbf16363aa46e4f3cc9a34fb90
https://github.com/MythTV/mythtv/commit/2855e2967209b8cbf16363aa46e4f3cc9a34fb90
Author: Bill Meek <billmeek at mythtv.org>
Date: 2019-10-16 (Wed, 16 Oct 2019)
Changed paths:
M mythtv/libs/libmythupnp/serializers/serializer.cpp
Log Message:
-----------
UPnP Serializer: Eliminate false 304 response statuses
Affects Services API responses.
For 'simple' Name=Value responses (Bool/Int/String/etc.),
include Value in the hash calculated for the ETag.
Without this, the ETag never changed and the backend always
sent 304/Not Modified on subsequent queries (assuming the
client returned the "If-None-Match" header.) For example:
http://hostname:6544/Myth/GetSetting?Key=UserJobDesc4&HostName=_GLOBAL_
the backend always returned:
'ETag': '"da39a3ee5e6b4b0d3255bfef95601890afd80709"'
regardless of the value in UserJobDesc4.
(cherry picked from commit 698f1f98652d77e19adbfd05ee50e069557ac927)
More information about the mythtv-commits
mailing list