diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/http_static/static_server.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index ae42fd53762..7afac4229c3 100644 --- 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, |