Minor fix in assembly script library (#1597)

And fix a code format issue introduced by last commit.
This commit is contained in:
Xu Jun 2022-10-14 12:54:25 +08:00 committed by GitHub
parent 84e88e4f85
commit a75295ec14
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

@ -385,7 +385,7 @@ export function put(url: string, payload: ArrayBuffer, payload_len: number, tag:
export function del(url: string, tag: string, export function del(url: string, tag: string,
cb: (resp: wamr_response) => void): void { cb: (resp: wamr_response) => void): void {
var req = new wamr_request(g_mid++, url, COAP_PUT, 0, new ArrayBuffer(0), 0); var req = new wamr_request(g_mid++, url, COAP_DELETE, 0, new ArrayBuffer(0), 0);
do_request(req, cb); do_request(req, cb);
} }