fix: improves error management

This commit is contained in:
Nicolas Lepage
2024-10-14 23:28:35 +02:00
parent 8abad8cb77
commit e8555180f7
2 changed files with 3 additions and 9 deletions

View File

@@ -88,7 +88,7 @@ func (r *response) WriteHeader(code int) {
checkWriteHeaderCode(code)
init, err := safejs.ValueOf(map[string]any{
"code": code,
"status": code,
"headers": r.headerValue(),
})
if err != nil {