修改部分BUG

This commit is contained in:
xx
2024-06-17 18:45:39 +08:00
parent 24ba0a637d
commit 5b606b54f9
2 changed files with 4 additions and 0 deletions

View File

@@ -77,6 +77,7 @@ namespace ylib
return m_remote_ipaddress;
}
ylib::json& extra() { return m_extra; }
void extra(ylib::json& e) { m_extra = e; }
private:
// 请求主机
std::string m_host;

View File

@@ -330,6 +330,9 @@ bool ylib::network::http::response::forward(const std::string& filepath)
network::http::reqpack* reqpack = new network::http::reqpack;
reqpack->init(m_reqpack->url(),m_reqpack->host(), m_reqpack->data(), m_reqpack->connid(), m_reqpack->server());
reqpack->filepath(filepath);
reqpack->website(this->website());
reqpack->extra(m_reqpack->extra());
m_reqpack->website()->router()->push(reqpack);
return true;
}