fix: fix typos in docs.

This commit is contained in:
Mengxin Liu 2017-11-20 01:25:50 +08:00 committed by oilbeater
parent b0eb1cde27
commit e2ce52a55e
9 changed files with 11 additions and 11 deletions

View file

@ -6,11 +6,11 @@ Each request to the default backend includes two headers:
- `X-Code` indicates the HTTP code to be returned to the client.
- `X-Format` the value of the `Accept` header.
**Important:** the custom backend must return the correct HTTP status code to be returned. NGINX do not changes the reponse from the custom default backend.
**Important:** the custom backend must return the correct HTTP status code to be returned. NGINX do not changes the response from the custom default backend.
Using this two headers is possible to use a custom backend service like [this one](https://github.com/kubernetes/ingress-nginx/tree/master/examples/customization/custom-errors/nginx) that inspect each request and returns a custom error page with the format expected by the client. Please check the example [custom-errors](examples/customization/custom-errors/README.md)
NGINX sends aditional headers that can be used to build custom response:
NGINX sends additional headers that can be used to build custom response:
- X-Original-URI
- X-Namespace