aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/plugins/http_static/http_static.h2
-rw-r--r--src/plugins/http_static/static_server.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/plugins/http_static/http_static.h b/src/plugins/http_static/http_static.h
index 4e038ed385d..5ea1a6eab8f 100644
--- a/src/plugins/http_static/http_static.h
+++ b/src/plugins/http_static/http_static.h
@@ -145,7 +145,7 @@ typedef struct
/** The bind URI, defaults to tcp://0.0.0.0/80 */
u8 *uri;
/** Threshold for switching to ptr data in http msgs */
- u32 use_ptr_thresh;
+ u64 use_ptr_thresh;
/** Enable the use of builtinurls */
u8 enable_url_handlers;
/** Max cache size before LRU occurs */
diff --git a/src/plugins/http_static/static_server.c b/src/plugins/http_static/static_server.c
index a4c62fcda07..a76cb87a2ce 100644
--- a/src/plugins/http_static/static_server.c
+++ b/src/plugins/http_static/static_server.c
@@ -384,6 +384,8 @@ hss_ts_rx_callback (session_t *ts)
vec_validate (request, msg.data.len - 1);
rv = svm_fifo_dequeue (ts->rx_fifo, msg.data.len, request);
ASSERT (rv == msg.data.len);
+ /* request must be a proper C-string in addition to a vector */
+ vec_add1 (request, 0);
}
/* Find and send data */
>Grokmirror user
aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/autogen/DefaultTestcase.py
blob: 0aaf40d7cabfff31e966b6ee4654d075deaad374 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35