Skip to content

Commit d3c04df

Browse files
committed
fix: update response and doc
Signed-off-by: Martijn Swaagman <[email protected]>
1 parent 738c79d commit d3c04df

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

examples/envoy_filter_metadata/README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,17 +17,17 @@ and has a matching Envoy configuration.
1717
$ docker compose up
1818
```
1919

20-
Send a HTTP request to `localhost:10000/` will return the configured response.
20+
Send a HTTP request to `localhost:10000` will return the configured response.
2121

2222
```sh
23-
$ curl localhost:10000/
23+
$ curl localhost:10000
2424
Welcome, set the `x-custom-metadata` header to change the response!
2525
```
2626

27-
Send a HTTP request to `localhost:10000/` with a `x-custom-metadata` header value to get the uppercased value in the response.
27+
Send a HTTP request to `localhost:10000` with a `x-custom-metadata` header value to get the uppercased value in the response.
2828
The response will also set a response header `uppercased-metadata: SOME-VALUE`.
2929

3030
```sh
31-
$ curl localhost:10000/ -H "x-custom-metadata: some-value"
32-
Custom response with Envoy metadata: "SOME-VALUE"!
31+
$ curl localhost:10000 -H "x-custom-metadata: some-value"
32+
Custom response with Envoy metadata: "SOME-VALUE"
3333
```

examples/envoy_filter_metadata/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ impl HttpContext for MetadataHttp {
4040
vec![("Powered-By", "proxy-wasm"), ("uppercased-metadata", &data)],
4141
Some(
4242
format!(
43-
"Custom response with Envoy metadata: {:?}!\n",
43+
"Custom response with Envoy metadata: {:?}\n",
4444
data
4545
)
4646
.as_bytes(),

0 commit comments

Comments
 (0)