Skip to content

Commit

Permalink
[Rules] Add section on non-ASCII header values (#17605)
Browse files Browse the repository at this point in the history
  • Loading branch information
pedrosousa authored Oct 17, 2024
1 parent 0b2f46e commit dbe510b
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,12 @@ Adds HTTP headers with location information for the visitor's IP address to the
Turning on [IP geolocation](/network/ip-geolocation/) will send a `cf-ipcountry` HTTP header to your origin server even when **Add visitor location headers** is turned off.
:::

#### Encoding of non-ASCII header values

Cloudflare always converts non-ASCII characters to UTF-8 (using hexadecimal character representation) in HTTP request and response header values. This applies to location headers added by the **Add visitor location headers** managed transform.

For example, the header value `São Paulo` would be encoded as `S\u00c3\u00a3o Paulo`.

### Add "True-Client-IP" header

:::note
Expand Down

0 comments on commit dbe510b

Please sign in to comment.