Hi,
Very good point. It made me revisit the way I treat
Content-Type header all over my code (for good).
The fix is in SVN, not it parses content type correctly
and relates to mime-type as to HTTP protocol RFC requires.
Take an SVN update
(don't forget that it is now from trunk and from refactoring branch)
Artyom
----- Original Message ----
> From: Daniel Vallejos <chi...@gm...>
> To: cpp...@li...
> Sent: Wed, September 22, 2010 2:04:24 AM
> Subject: [Cppcms-users] Rpc Json problem
>
> Hello.
>
> I have a problem with json_rpc class.
>
> I use Qooxdoo ajax framework. When this framework sends a request the
> content type is:
>
> Content-Type = "application/json; charset=UTF-8"
>
> but CppCMS expect only "application/json".
>
> if(c.request().content_type()!="application/json")
> throw call_error("Invalid content type");
>
> Regards.
>
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Cppcms-users mailing list
> Cpp...@li...
> https://lists.sourceforge.net/lists/listinfo/cppcms-users
>
|