Closed HaseProgram closed 6 years ago
Hi! I Got issue when there is no way to get data with content-type app/json (while urlencoded form works fine) I tried both of methods (in source code they looks similar):
email := c.PostForm("email") email := c.Form("email")
Also tried context.Read() like it was shown in README but with no result - also empty response. Here is the example of my request:
context.Read()
POST http://localhost:8080/api/user/username/create HTTP/1.1 Accept: application/json Content-Type: application/json { "about": "About me.", "email": "hello@mail.com", "fullname": "John Smith" }
All of theese fields are empty in c *routing.Context. Can you help me and show me what I'm doing wrong? Thanks in advice!
c *routing.Context
Hi! I Got issue when there is no way to get data with content-type app/json (while urlencoded form works fine) I tried both of methods (in source code they looks similar):
Also tried
context.Read()
like it was shown in README but with no result - also empty response. Here is the example of my request:All of theese fields are empty in
c *routing.Context
. Can you help me and show me what I'm doing wrong? Thanks in advice!