From ddc2650c74842d644cd2435ed5bb96425cdca0c2 Mon Sep 17 00:00:00 2001 From: meehl <12648828+meehl@users.noreply.github.com> Date: Sat, 20 Dec 2025 15:36:49 +0100 Subject: [PATCH] Fix HTTP/2 response headers parsing The HTTP/2 spec requires header field names to be lowercase. This change makes PoB agnostic about the used HTTP version by changing the pattern to be case-insensitive. --- src/Classes/TradeQueryRequests.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Classes/TradeQueryRequests.lua b/src/Classes/TradeQueryRequests.lua index 67b98c10e1..103e003275 100644 --- a/src/Classes/TradeQueryRequests.lua +++ b/src/Classes/TradeQueryRequests.lua @@ -40,7 +40,7 @@ function TradeQueryRequestsClass:ProcessQueue() return end -- if limit rules don't return account then the POESESSID is invalid. - if response.header:match("X%-Rate%-Limit%-Rules: (.-)\n"):match("Account") == nil and main.POESESSID ~= "" then + if response.header:match("[xX]%-[rR]ate%-[lL]imit%-[rR]ules: (.-)\n"):match("Account") == nil and main.POESESSID ~= "" then main.POESESSID = "" if errMsg then errMsg = errMsg .. "\nPOESESSID is invalid. Please Re-Log and reset"