On the client side I have code:
let response = await fetch('/getInfo', {
credentials: 'same-origin',
method: 'POST',
body: JSON.stringify({filename: "file.jpg"})
});
Code on the server side:
fmt.Println(c.PostForm("filename")) // empty
Why is it empty? How to get value of c.PostForm("filename")?