Skip to content
This repository has been archived by the owner on May 10, 2019. It is now read-only.

Commit

Permalink
fix json encode avoid htmlescape
Browse files Browse the repository at this point in the history
  • Loading branch information
刘建平 committed Aug 12, 2016
1 parent b5d9278 commit 87fe1a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client.menu.go
Expand Up @@ -13,7 +13,7 @@ func (c *Client) CreateMenu(m *entry.Menu) error {

agent := api.Post(conf.MakeURL("menu.create")).Debug(c.debug)
agent.QuerySet("access_token", c.token.Secret)
agent.JSONData(m)
agent.JSONData(m, true)

var e entry.ApiError
if _, _, err := agent.JSON(&e); err != nil {
Expand Down

0 comments on commit 87fe1a3

Please sign in to comment.