Skip to content

Commit 4247372

Browse files
committed
Only use FormData() for POST requests
1 parent 7b7f9fa commit 4247372

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jquery.pjax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function handleSubmit(event, container, options) {
129129
target: form
130130
}
131131

132-
if (window.FormData !== undefined) {
132+
if (defaults.type === 'POST' && window.FormData !== undefined) {
133133
defaults.data = new FormData(form);
134134
defaults.processData = false;
135135
defaults.contentType = false;

0 commit comments

Comments
 (0)