end
until false
- env.SCRIPT_NAME, env.QUERY_STRING = env.REQUEST_URI:match("(.*)%??(.*)")
+ env.SCRIPT_NAME, env.QUERY_STRING = env.REQUEST_URI:match("([^?]*)%??(.*)")
return req
end
else
return self:error(client, 411, statusmsg[411])
end
+
+ close = true
else
return self:error(client, 405, statusmsg[405])
end
if sourceout and stat then
if util.instanceof(sourceout, IOResource) then
- stat, code, msg = sourceout.fd:copyz(client, sourceout.len)
+ -- Jow: copyz() oopses on brcm-2.4, use copy() for now
+ --stat, code, msg = sourceout.fd:copyz(client, sourceout.len)
+ stat, code, msg = sourceout.fd:copy(client, sourceout.len)
else
stat, msg = ltn12.pump.all(sourceout, sinkout)
end