Fixes #9682. Removes data from the options for request with no content so that it is not used again in case of a retry. Unit test added.
This commit is contained in:
parent
139135a98a
commit
e83fcdcb02
2 changed files with 22 additions and 5 deletions
|
@ -644,6 +644,8 @@ jQuery.extend({
|
|||
// If data is available, append data to url
|
||||
if ( s.data ) {
|
||||
s.url += ( rquery.test( s.url ) ? "&" : "?" ) + s.data;
|
||||
// #9682: remove data so that it's not used in an eventual retry
|
||||
delete s.data;
|
||||
}
|
||||
|
||||
// Get ifModifiedKey before adding the anti-cache parameter
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue