mirror of https://github.com/cowrie/cowrie.git
Merge branch 'master' of https://github.com/cowrie/cowrie
This commit is contained in:
commit
ca837eda04
|
@ -8,6 +8,8 @@ to avoid circular calls
|
|||
|
||||
from __future__ import absolute_import, division
|
||||
|
||||
import json
|
||||
|
||||
import treq
|
||||
|
||||
from twisted.internet import defer
|
||||
|
@ -61,7 +63,8 @@ class Output(cowrie.core.output.Output):
|
|||
"""
|
||||
try:
|
||||
r = yield treq.post(COWRIE_URL,
|
||||
entry.get('log_text').encode('ascii'),
|
||||
json.dumps({'log_text': entry.get('log_text'),
|
||||
'system': entry.get('system')}).encode('ascii'),
|
||||
headers={b'Content-Type':
|
||||
[b'application/json'],
|
||||
b'User-Agent':
|
||||
|
|
Loading…
Reference in New Issue