kobolog / gorb

IPVS on steroids – REST API, heartbeats, service discovery and more
GNU Lesser General Public License v3.0
809 stars 83 forks source link

the rest return message is in text/plain content type #31

Closed dongshengz closed 8 years ago

dongshengz commented 8 years ago

Since we already have return the message in a JSON format, it would be nice to have a option to set the Content-Type of returned message to application/json. The current return message Content-Type →text/plain; charset=utf-8

I was trying to change in main.go wasn't able to get it to work.

kobolog commented 8 years ago

Resolved by commit 76989161ef5dae71cdd2bb93647fca8aa1fa5558. I've also changed the dependency management to be Glide to use vendoring, which is generally easier and more straightforward.