https://bugs.kde.org/show_bug.cgi?id=451790

--- Comment #1 from blackadderk...@gmail.com ---
Apparently the System Monitor Widget is changing the default XMLRequest User
Agent, and the Met.No API is rejecting it.

>From my Github issues page:
https://github.com/blackadderkate/weather-widget-2/issues/89#issuecomment-1075689558

Without System Monitor widget:

  'HTTP_USER_AGENT': 'Mozilla/5.0 (X11; Linux x86_64) KIO/5.92 '
                     'plasmashell/5.24.3',

With System Monitor widget:

  'HTTP_USER_AGENT': 'Mozilla/5.0',

I don't think I can code a workaround in my widget for this - Qt5 does not
allow setting the User-Agent header in XmlHttpRequest.
See
https://github.com/qt/qtdeclarative/blob/v5.13.2/src/qml/qml/qqmlxmlhttprequest.cpp#L1836

-- 
You are receiving this mail because:
You are watching all bug changes.

Reply via email to