Skip to content

Commit be3f489

Browse files
Set request content type
1 parent 2d98bfd commit be3f489

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/base_logger.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,10 @@ class BaseLogger {
5959
port: target.port,
6060
path: target.path,
6161
method: 'POST',
62-
headers: {'Content-Encoding': this._skip_compression ? 'identity' : 'deflated'}
62+
headers: {
63+
'Content-Encoding': this._skip_compression ? 'identity' : 'deflated',
64+
'Content-Type': 'application/json; charset=UTF-8'
65+
}
6366
};
6467
} catch (e) {
6568
this._url = null;

0 commit comments

Comments
 (0)