]> git.ipfire.org Git - thirdparty/sarg.git/commitdiff
Real time report takes POST into account
authorFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 19 Mar 2015 20:01:21 +0000 (21:01 +0100)
committerFrederic Marchal <fmarchal@users.sourceforge.net>
Thu, 19 Mar 2015 20:01:21 +0000 (21:01 +0100)
As PUT and POST are very similar, there is no point in including the former
into the real time report and not the latter.

log.c
sarg.conf

diff --git a/log.c b/log.c
index 57cbc7e38a3bb0b3a0e2bafdd46370c37158b504..99df56212fb68876ffd70bdf1fc7f8fd1921e6db 100644 (file)
--- a/log.c
+++ b/log.c
@@ -205,7 +205,7 @@ int main(int argc,char *argv[])
        NtlmUserFormat=NTLMUSERFORMAT_DOMAINUSER;
        IndexTree=INDEX_TREE_FILE;
        IndexFields=INDEXFIELDS_DIRSIZE;
-       strcpy(RealtimeTypes,"GET,PUT,CONNECT");
+       strcpy(RealtimeTypes,"GET,PUT,CONNECT,POST");
        RealtimeUnauthRec=REALTIME_UNAUTH_REC_SHOW;
        RedirectorFilterOutDate=true;
        DansguardianFilterOutDate=true;
index f56d0fa1f3b07bd720dd81346a02501069a35260..351b01f6ba54fff5aa6dbcc1610f71428e6d0e4b 100644 (file)
--- a/sarg.conf
+++ b/sarg.conf
 # TAG: realtime_types: GET,PUT,CONNECT,ICP_QUERY,POST
 #      Which records must be in realtime report.
 #
-# realtime_types GET,PUT,CONNECT
+# realtime_types GET,PUT,CONNECT,POST
 
 # TAG: realtime_unauthenticated_records: ignore|show
 #      What to do with unauthenticated records in realtime report.