From a999033e4b5dbdb8fd19dcb3a817d4632517d749 Mon Sep 17 00:00:00 2001 From: Howl Date: Tue, 12 Jul 2016 19:55:58 +0200 Subject: [PATCH] Add X-Real-404 to true 404 responses --- app/v1/404.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/v1/404.go b/app/v1/404.go index eadbf00..04f95d0 100644 --- a/app/v1/404.go +++ b/app/v1/404.go @@ -12,6 +12,7 @@ type response404 struct { // Handle404 handles requests with no implemented handlers. func Handle404(c *gin.Context) { + c.Header("X-Real-404", "yes") c.IndentedJSON(404, response404{ ResponseBase: common.ResponseBase{ Code: 404,