Skip Menu |
 

This queue is for tickets about the CGI-Application-Plugin-JSON CPAN distribution.

Report information
The Basics
Id: 61527
Status: open
Priority: 0/
Queue: CGI-Application-Plugin-JSON

People
Owner: Nobody in particular
Requestors: SILASMONK [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Unimportant
Broken in: 1.02
Fixed in: (no value)



Subject: application/json does not work in some cases
Download (untitled) / with headers
text/plain 456b
I have found that setting the content type to of Ajax response to a post request does not work correctly - at least in the YUI framework. This article (http://yuilibrary.com/forum/viewtopic.php?f=89&t=4743&p=16459&hilit=POST+connection#p16459) discusses it a little though only 'text/javascript' and 'text/plain' seem to work at all. I am sure that this module is doing the theoretically correct thing but a little more flexibility would help with reality.
Download (untitled) / with headers
text/plain 684b
On Tue Sep 21 14:42:03 2010, SILASMONK wrote: Show quoted text
> I have found that setting the content type to of Ajax response to a > post > request does not work correctly - at least in the YUI framework. This > article >
(http://yuilibrary.com/forum/viewtopic.php?f=89&t=4743&p=16459&hilit=POST+connection#p16459) Show quoted text
> discusses it a little though only 'text/javascript' and 'text/plain' > seem to work at all. I am sure that this module is doing the > theoretically correct thing but a little more flexibility would help > with reality.
Actually I realized there is an easy work around. In the run mode set the header with the required header. And use the "to_json" method rather than "json_body".


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.