Skip to content

Commit

Permalink
opdsbrowser: safe logging
Browse files Browse the repository at this point in the history
  • Loading branch information
hius07 authored Feb 11, 2025
1 parent 6769d35 commit 6cbf877
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/opds.koplugin/opdsbrowser.lua
Original file line number Diff line number Diff line change
Expand Up @@ -257,7 +257,7 @@ function OPDSBrowser:fetchFeed(item_url, headers_only)
user = self.root_catalog_username,
password = self.root_catalog_password,
}
logger.dbg("Request:", request)
logger.dbg("Request:", socketutil.safe_request(request))
local code, headers, status = socket.skip(1, http.request(request))
socketutil:reset_timeout()

Expand Down Expand Up @@ -323,7 +323,7 @@ end
function OPDSBrowser:getServerFileName(item_url)
local headers = self:fetchFeed(item_url, true)
if headers then
logger.dbg("OPDSBrowser: server file headers", headers)
logger.dbg("OPDSBrowser: server file headers", socketutil.safe_headers(headers))
local header = headers["content-disposition"]
if header then
return header:match('filename="*([^"]+)"*')
Expand Down

0 comments on commit 6cbf877

Please sign in to comment.