Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
d79ef56
)
http_static: read body only for POST requests
45/42145/1
author
Semir Sionek
<
[email protected]
>
Tue, 14 Jan 2025 11:39:15 +0000
(06:39 -0500)
committer
Semir Sionek
<
[email protected]
>
Tue, 14 Jan 2025 11:39:15 +0000
(06:39 -0500)
Type: improvement
Change-Id: Id863f59d04d8e6f22c886e079367d06908b8b24b
Signed-off-by: Semir Sionek <
[email protected]
>
src/plugins/http_static/static_server.c
patch
|
blob
|
history
diff --git
a/src/plugins/http_static/static_server.c
b/src/plugins/http_static/static_server.c
index
ae42fd5
..
7afac42
100644
(file)
--- a/
src/plugins/http_static/static_server.c
+++ b/
src/plugins/http_static/static_server.c
@@
-582,8
+582,8
@@
hss_ts_rx_callback (session_t *ts)
}
}
- /* Read
body
*/
- if (msg.data.body_len)
+ /* Read
request body for POST requests
*/
+ if (msg.data.body_len
&& msg.method_type == HTTP_REQ_POST
)
{
vec_validate (data, msg.data.body_len - 1);
rv = svm_fifo_peek (ts->rx_fifo, msg.data.body_offset, msg.data.body_len,