Erlang Mailing Lists

Author Message

<  Yaws mailing list  ~  Change yaws json MIME type to application/json?

tobbe
Posted: Wed Jan 31, 2007 10:04 am Reply with quote
User Joined: 19 Jan 2005 Posts: 274 Location: Stockholm, Sweden
I belive that yaws_jsonrpc.erl is obsolete and that you should
use yaws_rpc.erl instead (which do set the correct content-type).

--Tobbe



Bruce Fitzsimons wrote:
> Peoples,
>
> http://www.ietf.org/rfc/rfc4627.txt has documented the use of
> application/json for, well, json.
>
> Can we please change yaws_jsonrpc.erl to use this instead of "text/xml"
> ? I'm aware that this may break existing apps, but it is the right thing
> to do.
>
> Diff here, although retyping is permissible Smile
>
> Index: yaws_jsonrpc.erl
> ===================================================================
> RCS file: /cvsroot/erlyaws/yaws/src/yaws_jsonrpc.erl,v
> retrieving revision 1.2
> diff -r1.2 yaws_jsonrpc.erl
> 198c198
> < {content, "text/xml", Payload},
> ---
> > {content, "application/json", Payload},
>
>
> Regards,
> Bruce
>
> PS I'm just tidying up so that tonygj's fix to munge the mime type isn't
> required
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist
View user's profile Send private message Send e-mail Visit poster's website
Guest
Posted: Wed Jan 31, 2007 10:21 am Reply with quote
Guest
Peoples,

http://www.ietf.org/rfc/rfc4627.txt has documented the use of
application/json for, well, json.

Can we please change yaws_jsonrpc.erl to use this instead of "text/xml"
? I'm aware that this may break existing apps, but it is the right thing
to do.

Diff here, although retyping is permissible Smile

Index: yaws_jsonrpc.erl
===================================================================
RCS file: /cvsroot/erlyaws/yaws/src/yaws_jsonrpc.erl,v
retrieving revision 1.2
diff -r1.2 yaws_jsonrpc.erl
198c198
< {content, "text/xml", Payload},
---
> {content, "application/json", Payload},


Regards,
Bruce

PS I'm just tidying up so that tonygj's fix to munge the mime type isn't
required

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist

Display posts from previous:  

All times are GMT
Page 1 of 1
This forum is locked: you cannot post, reply to, or edit topics.

Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum