It should just create a file, fill a column with a value and return it.
If I test it on localhost, the excel file is correct
But if I deploy it to a vps, the file returned is broken
Any idea what might be wrong?
Here is the curl I am using for the post request:
curl -X POST http://localhost:8080 --output file.xlsx
What I find strange is that your deployment and my deployment return files that have different file types. Your original code as deployed on my VPS produces a file that is identified as Microsoft OOXML. But the file returned by your deployment is identified as Microsoft Excel 2007+.
How did you build the binary you run on your VPS? Did you build it locally and copied it to the VPS? Or did you build it on the VPS using Go there?