Skip to content

Commit e3313de

Browse files
maxd-nordicrlubos
authored andcommitted
net: downloader: fix coap url parsing
CoAP URLs were parsed twice, leading to errors. Now, the backend doesn't try to treat the file name as a URL anymore. Signed-off-by: Maximilian Deubel <[email protected]>
1 parent ec9e9fc commit e3313de

File tree

1 file changed

+2
-5
lines changed
  • subsys/net/lib/downloader/src/transports

1 file changed

+2
-5
lines changed

subsys/net/lib/downloader/src/transports/coap.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -287,11 +287,8 @@ static int coap_request_send(struct downloader *dl)
287287
return err;
288288
}
289289

290-
err = dl_parse_url_file(dl->file, file, sizeof(file));
291-
if (err) {
292-
LOG_ERR("Unable to parse url");
293-
return err;
294-
}
290+
LOG_DBG("dl->file: %s", dl->file);
291+
strncpy(file, dl->file, sizeof(file) - 1);
295292

296293
path_elem = strtok_r(file, COAP_PATH_ELEM_DELIM, &path_elem_saveptr);
297294
do {

0 commit comments

Comments
 (0)