jquery.redirect icon indicating copy to clipboard operation
jquery.redirect copied to clipboard

blank fields are removed

Open JLmike7 opened this issue 4 years ago • 1 comments

Any fields that have a blank string as a value are removed. This does not match $.ajax()

For example $.ajax() would send: foo[bar]: beep foo[test]: foo[bla]: boop

but $.redirect() sends: foo[bar]: beep foo[bla]: boop

JLmike7 avatar Sep 23 '19 16:09 JLmike7

Yes... this part of the code is the responsable of that:

      } else if (values[propName].length < 1) {
        delete values[propName];
    }

I think we could remove it. Now im a little bit bussy. If you are hurried, just remove that lines, if not, i will publish a new version soon.

mgalante avatar Sep 23 '19 18:09 mgalante

fixed in jquery redirect 1.2.0 (check the new flag)

mgalante avatar Nov 21 '22 23:11 mgalante