Code cleanup

This commit is contained in:
Behind The Math
2018-01-29 23:20:00 -05:00
committed by Robin North
parent 57aed828ac
commit 6fb509a021
12 changed files with 25 additions and 27 deletions

View File

@@ -35,7 +35,7 @@ module.exports = function(location, options, callback) {
request.setRequestHeader("X-PJAX", "true")
// Add the request payload if available
if (options.requestPayloadString != undefined && options.requestPayloadString != "") {
if (options.requestPayloadString !== undefined && options.requestPayloadString !== "") {
// Send the proper header information along with the request
request.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
}