Add missing 308 redirect

This commit is contained in:
nnposter
2026-11-05 00:21:27 +00:00
parent f9aa1f31ca
commit 8b515f26b8
+1 -1
View File
@@ -1706,7 +1706,7 @@ end
-- @return url table as returned by <code>url.parse</code> or nil if there's no
-- redirect taking place
function parse_redirect(host, port, path, response)
if ( not(tostring(response.status):match("^30[01237]$")) or
if ( not(tostring(response.status):find("^30[012378]$")) or
not(response.header) or
not(response.header.location) ) then
return nil