Skip to content

Commit 00ad2be

Browse files
committed
jquery-form#357; set POST method correctly
1 parent 25bce75 commit 00ad2be

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

jquery.form.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
* jQuery Form Plugin
3-
* version: 3.41.0-2013.09.02
3+
* version: 3.42.0-2013.09.02
44
* Requires jQuery v1.5 or later
55
* Copyright (c) 2013 M. Alsup
66
* Examples and documentation at: http://malsup.com/jquery/form/
@@ -479,7 +479,7 @@ $.fn.ajaxSubmit = function(options) {
479479

480480
// update form attrs in IE friendly way
481481
form.setAttribute('target',id);
482-
if (!method) {
482+
if (!method || /post/i.test(method) ) {
483483
form.setAttribute('method', 'POST');
484484
}
485485
if (a != s.url) {

0 commit comments

Comments
 (0)