改名
This commit is contained in:
@@ -459,10 +459,8 @@ class Request extends HttpService
|
|||||||
if (!empty($request->post)) {
|
if (!empty($request->post)) {
|
||||||
$sRequest->params->setPosts($request->post ?? []);
|
$sRequest->params->setPosts($request->post ?? []);
|
||||||
}
|
}
|
||||||
Context::setContext(HttpParams::class, $sRequest->params);
|
|
||||||
|
|
||||||
$sRequest->headers = new HttpHeaders(array_merge($request->server, $request->header));
|
$sRequest->headers = new HttpHeaders(array_merge($request->server, $request->header));
|
||||||
Context::setContext(HttpHeaders::class, $sRequest->headers);
|
|
||||||
|
|
||||||
$sRequest->uri = $sRequest->headers->get('request_uri');
|
$sRequest->uri = $sRequest->headers->get('request_uri');
|
||||||
|
|
||||||
|
|||||||
@@ -103,9 +103,6 @@ class HTTPServerListener extends Abstracts\Server
|
|||||||
{
|
{
|
||||||
[$sRequest, $sResponse] = [HRequest::create($request), HResponse::create($response)];
|
[$sRequest, $sResponse] = [HRequest::create($request), HResponse::create($response)];
|
||||||
try {
|
try {
|
||||||
$sResponse->send('1');
|
|
||||||
return;
|
|
||||||
|
|
||||||
$node = $this->router->find_path($sRequest);
|
$node = $this->router->find_path($sRequest);
|
||||||
if (empty($node)) {
|
if (empty($node)) {
|
||||||
$sResponse->send('404', 404);
|
$sResponse->send('404', 404);
|
||||||
|
|||||||
Reference in New Issue
Block a user