Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/loggly/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,7 @@ common.loggly = function () {
}
}
var requestOptions = {
uri: (isBulk && headers['X-LOGGLY-TAG']) ? uri + '/tag/' + headers['X-LOGGLY-TAG'] : uri,
url: (isBulk && headers['X-LOGGLY-TAG']) ? uri + '/tag/' + headers['X-LOGGLY-TAG'] : uri,
method: method,
headers: isBulk ? {} : headers || {}, // Set headers empty for bulk
proxy: proxy,
Expand Down Expand Up @@ -233,12 +233,12 @@ common.loggly = function () {
// Join Array Message with new line ('\n') character
//
if (arrMsg.length) {
requestOptions.body = arrMsg.join('\n');
requestOptions.data = arrMsg.join('\n');
arrMsg.length = 0;
}
try {
// eslint-disable-next-line no-unused-vars
axios(uri, requestOptions).then(function(res){
axios(requestOptions).then(function(res){
const responseCode = res.status;
if (responseCode === httpStatusCode.badToken.code) {
isValidToken = false;
Expand Down