mirror of
https://forge.fsky.io/lda/Parsee.git
synced 2026-03-13 16:45:10 +00:00
[FIX] Fix use-after-free on DMs
This commit is contained in:
parent
14c67c6f9e
commit
4bcf1db4ec
3 changed files with 10 additions and 3 deletions
|
|
@ -39,7 +39,10 @@ RouteHead(RouteMedia, arr, argp)
|
|||
HttpResponseHeader(args->ctx, key, val);
|
||||
}
|
||||
HttpSendHeaders(args->ctx);
|
||||
StreamCopy(HttpClientStream(cctx), HttpServerStream(args->ctx));
|
||||
if (HttpRequestMethodGet(args->ctx) != HTTP_HEAD)
|
||||
{
|
||||
StreamCopy(HttpClientStream(cctx), HttpServerStream(args->ctx));
|
||||
}
|
||||
|
||||
HttpClientContextFree(cctx);
|
||||
Free(server);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue