I don't see why you should drop the request body at all, regardless of the 
method. Afaik, the http spec does not explicitly preclude including a 
request body for any request type. Whether or not the server will/should 
interpret or even parse that body is another question, but I don't see why 
this kind of restriction should be enforced on the client side.

On Sunday, March 30, 2014 9:20:30 AM UTC+2, Nicholaus Shupe wrote:
>
> Please take some time to address this issue rather.
>
> On Sunday, March 30, 2014 12:20:10 AM UTC-7, Nicholaus Shupe wrote:
>>
>> Supporting PUT correctly is important because PUT requests are supposed 
>> to be idempotent (
>> http://stackoverflow.com/questions/630453/put-vs-post-in-rest).
>>
>> However, Polymer seems to have a few bugs for PUT requests. In 
>> particular, the body is completely being dropped when the method is set to 
>> PUT. Here are my suggested fixes:
>>
>> polymer-ajax.html, line 235 should be:
>>
>>         if (this.method === 'POST' *|| this.method === 'PUT'*) {
>>           args.body = this.body || args.body;
>>         }
>>
>> polymer-xhr.html, line 88 should be:
>>
>>         xhr.send((method == 'POST'* || method == 'PUT'*) ? (options.body 
>> || params) : null);
>>
>> My additions in *bold*.
>>
>> Please take address this issue!
>>
>> Thanks,
>>
>> -- Nic
>>
>>
>>

Follow Polymer on Google+: plus.google.com/107187849809354688692
--- 
You received this message because you are subscribed to the Google Groups 
"Polymer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/polymer-dev/0e2bdf89-7758-4467-aded-6681b4492aa8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to