Ensure correct XHR encoding for multipart/form-data forms #174
@@ -68,7 +68,7 @@ module.exports = function(location, options, callback) {
|
||||
request.setRequestHeader("X-PJAX-Selectors", JSON.stringify(options.selectors))
|
||||
|
||||
// Send the proper header information for POST forms
|
||||
if (requestPayload && requestMethod === "POST") {
|
||||
if (requestPayload && requestMethod === "POST" && !formData) {
|
||||
request.setRequestHeader("Content-Type", "application/x-www-form-urlencoded")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user