feat: sync latest ARR implementation
This commit is contained in:
@@ -31,6 +31,15 @@ def handler_for(application: PortalApplication) -> Type[BaseHTTPRequestHandler]:
|
||||
self._dispatch(b"")
|
||||
|
||||
def do_POST(self) -> None: # noqa: N802
|
||||
self._dispatch_with_body()
|
||||
|
||||
def do_PATCH(self) -> None: # noqa: N802
|
||||
self._dispatch_with_body()
|
||||
|
||||
def do_DELETE(self) -> None: # noqa: N802
|
||||
self._dispatch_with_body()
|
||||
|
||||
def _dispatch_with_body(self) -> None:
|
||||
raw_length = self.headers.get("Content-Length")
|
||||
if raw_length is None:
|
||||
self._write(
|
||||
@@ -60,6 +69,7 @@ def handler_for(application: PortalApplication) -> Type[BaseHTTPRequestHandler]:
|
||||
self.path,
|
||||
{key: value for key, value in self.headers.items()},
|
||||
body,
|
||||
client_id=str(self.client_address[0]),
|
||||
)
|
||||
self._write(response)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user