Commit d1d85fa
net: http_server: fix URL matching with '?' character in resource
Fixes zephyrproject-rtos#84198.
If a '?' character is used as part of a wildcard resource, do not treat
this as the end of the string when comparing with a path from the HTTP
request. Only the path from the HTTP request may be terminated by '?'
(in the case of a request with query parameters).
Signed-off-by: Matt Rodgers <[email protected]>1 parent 8ef1b34 commit d1d85fa
File tree
2 files changed
+14
-7
lines changed- subsys/net/lib/http
- tests/net/lib/http_server/common/src
2 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
700 | 700 | | |
701 | 701 | | |
702 | 702 | | |
703 | | - | |
704 | | - | |
| 703 | + | |
| 704 | + | |
| 705 | + | |
| 706 | + | |
| 707 | + | |
705 | 708 | | |
706 | | - | |
707 | | - | |
708 | | - | |
| 709 | + | |
| 710 | + | |
| 711 | + | |
709 | 712 | | |
710 | 713 | | |
711 | | - | |
712 | | - | |
| 714 | + | |
| 715 | + | |
713 | 716 | | |
714 | 717 | | |
715 | 718 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
342 | 342 | | |
343 | 343 | | |
344 | 344 | | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
345 | 349 | | |
346 | 350 | | |
347 | 351 | | |
| |||
0 commit comments