Bug Tracker

Opened 6 years ago

Closed 6 years ago

#14071 closed bug (invalid)

AJAX: data zero leads to form data empty

Reported by: jquery@… Owned by: jquery@…
Priority: undecided Milestone: None
Component: unfiled Version: 1.9.1
Keywords: Cc:
Blocked by: Blocking:

Description

Hey,

i'm not sure if it's really a bug you should fix but if i'm sending an xhr with just a zero (number) as data the actual data (request header) being send is empty. Using zero transformed to a string works fine.

see: http://jsfiddle.net/FSFtc/

Cheers,

Martin

Change History (4)

comment:1 Changed 6 years ago by dmethvin

Owner: set to jquery@…
Status: newpending

Did you save your test case? I don't see any code at that link.

comment:2 Changed 6 years ago by anonymous

Error: Failed to load processor javscript
No macro or processor named 'javscript' found

comment:3 Changed 6 years ago by anonymous

$.ajax({

url: '/', type: 'POST', data: 0+

})

$.ajax({

url: '/', type: 'POST', data: 0

})

comment:4 Changed 6 years ago by trac-o-bot

Resolution: invalid
Status: pendingclosed

Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!

Note: See TracTickets for help on using tickets.