[mythtv-commits] [MythTV/mythtv] 698f1f: UPnP Serializer: Eliminate false 304 response stat...

billmeek noreply at github.com
Tue Jun 18 15:42:30 UTC 2019


  Branch: refs/heads/master
  Home:   https://github.com/MythTV/mythtv
  Commit: 698f1f98652d77e19adbfd05ee50e069557ac927
      https://github.com/MythTV/mythtv/commit/698f1f98652d77e19adbfd05ee50e069557ac927
  Author: Bill Meek <billmeek at mythtv.org>
  Date:   2019-06-18 (Tue, 18 Jun 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.




More information about the mythtv-commits mailing list