chrismessina / greasekit

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

XMLHttpRequest responseHeaders is not valid Javascript String #15

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. make a GM_xmlHttpRequest
2. inspect the responseHeaders in the response

What is the expected output?
a string representation of a dictionary

What do you see instead?
some broken "Javascript" object

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:
In XMLHttpRequest.m
- connection: didReceiveResponse:
change:
    [response_ setValue: [http allHeaderFields]
                  forKey: @"responseHeaders"];
to: 
    [response_ setValue: [[http allHeaderFields] description]
                  forKey: @"responseHeaders"];

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

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:52