diff options
Diffstat (limited to 'src/plugins/http_static/static_server.c')
-rw-r--r-- | src/plugins/http_static/static_server.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c index a37cc3f03b2..9cc3f5dd658 100644 --- a/src/plugins/http_static/static_server.c +++ b/src/plugins/http_static/static_server.c @@ -126,6 +126,9 @@ start_send_data (hss_session_t *hs, http_status_code_t status) ASSERT (rv == sizeof (headers)); } + if (!msg.data.body_len) + goto done; + uword data = pointer_to_uword (hs->data); rv = svm_fifo_enqueue (ts->tx_fifo, sizeof (data), (u8 *) &data); ASSERT (rv == sizeof (data)); |