lua/streaming: fix http body logging

pull/2757/head
Victor Julien 8 years ago
parent d6d314aded
commit 994a2fdb84

@ -861,6 +861,7 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf)
if (opts.alproto == ALPROTO_HTTP && opts.streaming) {
om->StreamingLogFunc = LuaStreamingLogger;
om->stream_type = STREAMING_HTTP_BODIES;
om->alproto = ALPROTO_HTTP;
AppLayerHtpEnableRequestBodyCallback();
AppLayerHtpEnableResponseBodyCallback();
@ -902,6 +903,7 @@ static OutputCtx *OutputLuaLogInit(ConfNode *conf)
AppLayerHtpNeedFileInspection();
} else if (opts.streaming && opts.tcp_data) {
om->StreamingLogFunc = LuaStreamingLogger;
om->stream_type = STREAMING_TCP_DATA;
} else if (opts.flow) {
om->FlowLogFunc = LuaFlowLogger;
} else if (opts.stats) {

Loading…
Cancel
Save