karlma / gorest

Automatically exported from code.google.com/p/gorest
0 stars 0 forks source link

application/xml problems #6

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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:

GoogleCodeExporter commented 8 years ago
Patch applied ;o)

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