mirror of
https://git.checksum.fail/alec/erythros
synced 2025-12-10 13:09:55 +02:00
System/Libraries/Http: Use StrCpy instead of StrPrint when appending data to POST request
This commit is contained in:
@@ -412,7 +412,7 @@ I64 @http_req(@http_request* req)
|
|||||||
"Content-Length: %d\r\n\r\n",
|
"Content-Length: %d\r\n\r\n",
|
||||||
req->url->path, req->url->query, req->url->host, headers_buf,
|
req->url->path, req->url->query, req->url->host, headers_buf,
|
||||||
StrLen(req->data));
|
StrLen(req->data));
|
||||||
StrPrint(buf + StrLen(buf), req->data);
|
StrCpy(buf + StrLen(buf), req->data);
|
||||||
break;
|
break;
|
||||||
case HTTP_REQ_PUT:
|
case HTTP_REQ_PUT:
|
||||||
StrPrint(buf,
|
StrPrint(buf,
|
||||||
|
|||||||
Reference in New Issue
Block a user