diff --git a/frontend/socketutil.lua b/frontend/socketutil.lua index bdb19885d..7ad9ca132 100644 --- a/frontend/socketutil.lua +++ b/frontend/socketutil.lua @@ -17,7 +17,7 @@ local socketutil = { --- Builds a sensible UserAgent that fits Wikipedia's UA policy local socket_ua = http.USERAGENT -socketutil.USER_AGENT = "KOReader/" .. Version:getShortVersion() .. " (" .. Device:info() .. "; " .. jit.os .. "; " .. jit.arch .. ") " .. socket_ua:gsub(" ", "/") +socketutil.USER_AGENT = "KOReader/" .. Version:getShortVersion() .. " (" .. Device.model .. "; " .. jit.os .. "; " .. jit.arch .. ") " .. socket_ua:gsub(" ", "/") -- Monkey-patch it in LuaSocket, as it already takes care of inserting the appropriate header to its requests. http.USERAGENT = socketutil.USER_AGENT