Skip to content

Commit c7b4457

Browse files
committed
Switch comparison of method so "PATCH" is included
Per comments in PR
1 parent 4247372 commit c7b4457

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 (defaults.type === 'POST' && window.FormData !== undefined) {
132+
if (defaults.type !== 'GET' && window.FormData !== undefined) {
133133
defaults.data = new FormData(form);
134134
defaults.processData = false;
135135
defaults.contentType = false;

0 commit comments

Comments
 (0)