diff --git a/lib/core/common.py b/lib/core/common.py index dbe0de244..5eab66cc4 100644 --- a/lib/core/common.py +++ b/lib/core/common.py @@ -1999,9 +1999,9 @@ def logHTTPTraffic(requestLogMsg, responseLogMsg): kb.locks.logLock.acquire() - dataToTrafficFile("%s\n" % requestLogMsg) - dataToTrafficFile("%s\n" % responseLogMsg) - dataToTrafficFile("\n%s\n\n" % (76 * '#')) + dataToTrafficFile("%s%s" % (requestLogMsg, os.linesep)) + dataToTrafficFile("%s%s" % (responseLogMsg, os.linesep)) + dataToTrafficFile("%s%s%s%s" % (os.linesep, 76 * '#', os.linesep, os.linesep)) kb.locks.logLock.release()