Add X-Real-404 to true 404 responses
This commit is contained in:
parent
8544c41cc6
commit
a999033e4b
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue
Block a user