Send the PJAX header with request #80

Merged
bradleybensmith merged 3 commits from bram1028-patch-1 into master 2017-12-19 07:56:31 -05:00

View File

@@ -22,6 +22,7 @@ module.exports = function(location, options, callback) {
request.open(requestMethod.toUpperCase(), location, true)
request.setRequestHeader("X-Requested-With", "XMLHttpRequest")
request.setRequestHeader("X-PJAX", "true")
// Add the request payload if available
if (options.requestPayloadString != undefined && options.requestPayloadString != "") {