You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I pointed here the fasthttp-routing uses builtin Error() function of fasthttp.RequestCtx in it's handler (file report.go lines 103 and 105). This function however completely resets response which introduces problem e.g. when returning error 401 (it should return header WWW-Authenticate in response and resetting response deletes all headers). Would it be possible to implement custom error handling function which would correctly print all user-set headers in response on error encounter?
The text was updated successfully, but these errors were encountered:
As I pointed here the fasthttp-routing uses builtin
Error()
function offasthttp.RequestCtx
in it's handler (filereport.go
lines103
and105
). This function however completely resets response which introduces problem e.g. when returning error 401 (it should return headerWWW-Authenticate
in response and resetting response deletes all headers). Would it be possible to implement custom error handling function which would correctly print all user-set headers in response on error encounter?The text was updated successfully, but these errors were encountered: