1
0
mirror of https://github.com/RIOT-OS/RIOT.git synced 2024-12-29 04:50:03 +01:00

gcoap/fileserver: ignore URI HOST option

This commit is contained in:
Benjamin Valentin 2022-08-04 12:04:59 +02:00
parent 9333970b77
commit 199e31ef43

View File

@ -561,6 +561,9 @@ ssize_t gcoap_fileserver_handler(coap_pkt_t *pdu, uint8_t *buf, size_t len,
}
request.options.exists.if_none_match = true;
break;
case COAP_OPT_URI_HOST:
/* ignore host name option */
continue;
case COAP_OPT_URI_PATH:
if (strip_remaining != 0) {
strip_remaining -= 1;