0๐
โ
I fixed my issue. I read the docs of fasthttp another time and figured out that the ctx.Error()
method clears all headers. Instead I am now setting the response code and error message manually and everything works fine.
Source:stackexchange.com