chrismessina / greasekit

Automatically exported from code.google.com/p/greasekit
MIT License
0 stars 1 forks source link

xmlhttprequest with PUT method doesn't include data #14

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Make a user.js script that uses PUT as the method in the xmlhttprequest
2. include form data
3. notice no data gets sent to server

What version of the product are you using? On what operating system?
OS X 10.4.11
Safari 3.0.4
Greasekit 1.3

Fix:
XMLHttpRequest.m
-initWithDetails:delegate:
change:
    if ([[req HTTPMethod] isEqualTo: @"POST"]) {
to:
    if ([[req HTTPMethod] isEqualTo: @"POST"] || [[req HTTPMethod] isEqualTo: @"PUT"]) {

Original issue reported on code.google.com by sei...@gmail.com on 20 Dec 2007 at 8:30

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Thank you for reporting.

Original comment by kato.kaz...@gmail.com on 25 Dec 2007 at 1:56

GoogleCodeExporter commented 9 years ago
Sorry, I removed GM APIs from the trunk for security reason.
I applied your patch to the "gm-apis" branch. Thank you.

Original comment by kato.kaz...@gmail.com on 26 Dec 2007 at 9:35