dhysf / gorest

Automatically exported from code.google.com/p/gorest

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

application/xml problems

GoogleCodeExporter opened this issue · comments

2 Problems with xml usage:
1. The wiki says there are marshallers for json and xml but in marshaller.go 
there is only the jsonmarshaller predefined
solution: add a predifined xmlmarshaller

2. consumes: application/xml not working even avter adding the marshaller 
definition

solution: 
parse.go:71 prevented it from working as expected it should be md.producesMime 
instead of md.consumesMime in there because md.consumesMime was already set 
correctly.

I have fixed both. Maybe integrating it into the repo to have the documented 
features?

Original issue reported on code.google.com by havoc.th...@gmx.net on 21 Feb 2013 at 1:49

Attachments:

Patch applied ;o)

Original comment by siyabong...@gmail.com on 15 Sep 2013 at 2:22

  • Changed state: Fixed