Skip to content

Commit 14fc9d2

Browse files
committed
Merge pull request #239 from mschuerig/master
Normalize form method default to uppercase
2 parents 464d60f + 2a8da05 commit 14fc9d2

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
@@ -118,7 +118,7 @@ function handleSubmit(event, container, options) {
118118
throw "$.pjax.submit requires a form element"
119119

120120
var defaults = {
121-
type: form.method,
121+
type: form.method.toUpperCase(),
122122
url: form.action,
123123
data: $(form).serializeArray(),
124124
container: $(form).attr('data-pjax'),

0 commit comments

Comments
 (0)