Skip to content

Commit ebc58e8

Browse files
committed
Fix example output (nginx#864)
Problem: The example output in the http-header-filter and https-termination examples are outdated. Solution: Updated the example output to match the actual output.
1 parent 0583eda commit ebc58e8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

examples/http-header-filter/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ Headers:
6464
header 'Accept-Encoding' is 'compress'
6565
header 'My-cool-header' is 'my-client-value, this-is-an-appended-value'
6666
header 'My-Overwrite-Header' is 'this-is-the-only-value'
67-
header 'Host' is 'echo.example.com'
67+
header 'Host' is 'echo.example.com:$GW_PORT'
6868
header 'Connection' is 'close'
6969
header 'Accept' is '*/*'
7070
```

examples/https-termination/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ To get a redirect for coffee:
109109
curl --resolve cafe.example.com:$GW_HTTP_PORT:$GW_IP http://cafe.example.com:$GW_HTTP_PORT/coffee --include
110110
HTTP/1.1 302 Moved Temporarily
111111
...
112-
Location: https://cafe.example.com:443/coffee
112+
Location: https://cafe.example.com/coffee
113113
...
114114
```
115115

@@ -119,7 +119,7 @@ To get a redirect for tea:
119119
curl --resolve cafe.example.com:$GW_HTTP_PORT:$GW_IP http://cafe.example.com:$GW_HTTP_PORT/tea --include
120120
HTTP/1.1 302 Moved Temporarily
121121
...
122-
Location: https://cafe.example.com:443/tea
122+
Location: https://cafe.example.com/tea
123123
...
124124
```
125125

0 commit comments

Comments
 (0)