Skip to main content

Bug Tracker

Side navigation

#14071 closed bug (invalid)

Opened June 26, 2013 09:10AM UTC

Closed July 16, 2013 08:46AM UTC

AJAX: data zero leads to form data empty

Reported by: jquery@mkrause.info Owned by: jquery@mkrause.info
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

Attachments (0)
Change History (4)

Changed June 29, 2013 06:55PM UTC by dmethvin comment:1

owner: → jquery@mkrause.info
status: newpending

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

Changed July 01, 2013 10:04AM UTC by anonymous comment:2

  
$.ajax({
    url: '/',
    type: 'POST',
    data: 0+''
})

$.ajax({
    url: '/',
    type: 'POST',
    data: 0
})

Changed July 01, 2013 10:05AM UTC by anonymous comment:3

$.ajax({

url: '/',

type: 'POST',

data: 0+''

})

$.ajax({

url: '/',

type: 'POST',

data: 0

})

Changed July 16, 2013 08:46AM UTC by trac-o-bot comment:4

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!