(next http.Handler)
| 364 | } |
| 365 | |
| 366 | func commonHeaders(next http.Handler) http.Handler { |
| 367 | return http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { |
| 368 | x.AddCorsHeaders(w) |
| 369 | w.Header().Set("Content-Type", "application/json") |
| 370 | next.ServeHTTP(w, r) |
| 371 | }) |
| 372 | } |
| 373 | |
| 374 | func recoveryHandler(next http.Handler) http.Handler { |
| 375 |
no test coverage detected