Skip to content

Commit be4acc6

Browse files
committed
Instructions for header case
1 parent d68877f commit be4acc6

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ This image is executed as non root by default and is fully compliant with Kubern
3232
- [Include environment variables in the response](#include-environment-variables-in-the-response)
3333
- [Configuring CORS policy](#setting-corscross-origin-resource-sharing-headers-in-the-response)
3434
- [Client certificate details (mTLS) in the response](#client-certificate-details-mtls-in-the-response)
35+
- [Preserve the case of headers in response body](#preserve-the-case-of-headers-in-response-body)
3536
- [Prometheus Metrics](#prometheus-metrics)
3637
- [Screenshots](#screenshots)
3738
- [Building](#building)
@@ -278,6 +279,14 @@ If you browse to https://localhost:8443/ in Firefox, you won't get prompted to s
278279
openssl pkcs12 -export -in cert.pem -inkey privkey.pem -out certpkcs12.pfx
279280
```
280281

282+
## Preserve the case of headers in response body
283+
284+
By default, the headers in the response body are lowercased. To attempt to preserve the case of headers in the response body, set the environment variable `PRESERVE_HEADER_CASE` to true.
285+
286+
```bash
287+
docker run -e PRESERVE_HEADER_CASE=true -p 8080:8080 -p 8443:8443 --rm -t mendhak/http-https-echo:33
288+
```
289+
281290
## Prometheus Metrics
282291

283292
To expose http performance metrics, set the `PROMETHEUS_ENABLED` environment variable to true, the metrics will be available at `/metrics`. This uses the [`express-prom-bundle`](https://github.com/jochen-schweizer/express-prom-bundle) middleware

0 commit comments

Comments
 (0)