lua/streaming: fix http body logging

pull/2737/head
Victor Julien 8 years ago
parent 0f4a9d740e
commit 30a8b2def0

@ -788,6 +788,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();
@ -831,6 +832,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