From f7fe5873120551efa0117975d380585077210595 Mon Sep 17 00:00:00 2001 From: Alex Corn Date: Mon, 13 Jul 2026 12:50:15 -0400 Subject: [PATCH] Send correct user-agent for mobileconf requests (fixes #371) --- components/confirmations.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/components/confirmations.js b/components/confirmations.js index a31f262..0c1d715 100644 --- a/components/confirmations.js +++ b/components/confirmations.js @@ -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') {