Send correct user-agent for mobileconf requests

(fixes #371)
This commit is contained in:
Alex Corn
2026-07-13 12:50:15 -04:00
parent 08d14f19e6
commit f7fe587312

View File

@@ -261,7 +261,10 @@ function request(community, url, key, time, tag, params, json, callback) {
var req = {
method: url == 'multiajaxop' ? 'POST' : 'GET',
uri: 'https://steamcommunity.com/mobileconf/' + url,
json: !!json
json: !!json,
headers: {
'user-agent': 'okhttp/4.9.2'
}
};
if (req.method == 'GET') {