xhr.send( /^P(U|OS)T$/.test( type ) ? s.data : null );

I wonder if DELETE would send data as well ... maybe the correct check is
when type is not GET or HEAD?

Regards

On Sat, Jul 25, 2009 at 1:23 AM, Brandon Aaron <brandon.aa...@gmail.com>wrote:

>
> No worries... thanks for creating the ticket. :)
>
> --
> Brandon Aaron
>
> On Fri, Jul 24, 2009 at 4:07 PM, alx<a.simm...@googlemail.com> wrote:
> >
> > Seems like the Trac syntax corrupted my patch. :)
> >
> > Should be the line of my original post:
> >
> >  xhr.send( (type === "POST" || type === "PUT") ? s.data : null );
> >
> > Sorry for the inconvenience.
> >
> > --
> > alx
> > On Jul 25, 1:03 am, alx <a.simm...@googlemail.com> wrote:
> >> Hi Aaron,
> >>
> >> created a ticket with patch:http://dev.jquery.com/ticket/4971
> >>
> >> --
> >> alx
> >>
> >> On Jul 25, 12:40 am, Brandon Aaron <brandon.aa...@gmail.com> wrote:
> >>
> >>
> >>
> >> > Could you create a ticket for this?
> >>
> >> > --
> >> > Brandon Aaron
> >>
> >> > On Fri, Jul 24, 2009 at 3:28 PM, alx<a.simm...@googlemail.com> wrote:
> >>
> >> > > Hi,
> >>
> >> > > during the update of one of my projects to the latest svn checkout
> >> > > (r6493) I ran into a confusing problem with the ajax() method. All
> >> > > calls with method "PUT" don't deliver any payload. Because of this
> >> > > problem I compared the svn version with latest stable release
> (1.3.2).
> >>
> >> > > 1.3.2 (working): xhr.send(s.data);
> >>
> >> > > 1.3.3pre (not-working): xhr.send( (type === "POST") ? s.data : null
> );
> >>
> >> > > changed(working): xhr.send( (type === "POST" || type === "PUT") ?
> >> > > s.data : null );
> >>
> >> > > Did I miss something or is this an unintentional behaviour?
> >>
> >> > > ---
> >> > > alx
> > >
> >
>
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jQuery Development" group.
To post to this group, send email to jquery-dev@googlegroups.com
To unsubscribe from this group, send email to 
jquery-dev+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/jquery-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to