mirror of
https://github.com/jquery/jquery.git
synced 2026-04-20 03:01:22 -04:00
Calling load with null as the data parameter now properly issues a GET request, not a POST request. Unit tests added. Fixes #12234.
This commit is contained in:
@@ -170,7 +170,7 @@ jQuery.fn.load = function( url, params, callback ) {
|
||||
params = undefined;
|
||||
|
||||
// Otherwise, build a param string
|
||||
} else if ( typeof params === "object" ) {
|
||||
} else if ( params && typeof params === "object" ) {
|
||||
type = "POST";
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user