From: Bruce F. <Bruce@Fitzsimons.org> - 2007-01-31 06:55:16
|
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 :-) 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 |