From 0156ed41dceeef48f070adf67f14d4ba4c4f6d61 Mon Sep 17 00:00:00 2001 From: aunsane Date: Thu, 28 Dec 2017 21:21:10 +0300 Subject: Steam: refactoring - reworking http requests - added ability to get game name by appid - another attempt to fix #633 - minor refactoring --- protocols/Steam/src/api/captcha.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'protocols/Steam/src/api/captcha.h') diff --git a/protocols/Steam/src/api/captcha.h b/protocols/Steam/src/api/captcha.h index 9619a09b54..0b8ba9191a 100644 --- a/protocols/Steam/src/api/captcha.h +++ b/protocols/Steam/src/api/captcha.h @@ -5,9 +5,11 @@ class GetCaptchaRequest : public HttpRequest { public: GetCaptchaRequest(const char *captchaId) : - HttpRequest(REQUEST_GET, FORMAT, STEAM_WEB_URL "/public/captcha.php?gid=%s", captchaId) + HttpRequest(HttpGet, STEAM_WEB_URL "/public/captcha.php") { flags = NLHRF_HTTP11 | NLHRF_NODUMP; + + Uri << CHAR_PARAM("gid", captchaId); } }; -- cgit v1.2.3