Commit af8b08b
committed
followup: minor fixes according to pr comments
This includes:
* Add set_proxy_options to README TOC.
* Make a copy of proxy options gotten from the user.
* Rewrite no_proxy matching to use ngx.re.gmatch and friends instead
of Lua's built-in gmatch functions. Since the regular expression
formats are completely different, the no_proxy matching process had
to be modified a bit.
* Fix 14-host-header.t on systems with ipv6 support by disabling ipv6
address resolution.
* Make 16-http-proxy.t more reliable by ignoring the order of the
headers in the CONNECT request (the order is not guaranteed). The
new check uses a regular expression to check that the CONNECT line
is correct and that the headers include correct Host in some position.1 parent b0e6fc4 commit af8b08b
File tree
4 files changed
+23
-15
lines changed- lib/resty
- t
4 files changed
+23
-15
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
| 19 | + | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
| |||
958 | 960 | | |
959 | 961 | | |
960 | 962 | | |
961 | | - | |
| 963 | + | |
962 | 964 | | |
963 | 965 | | |
964 | 966 | | |
| |||
977 | 979 | | |
978 | 980 | | |
979 | 981 | | |
980 | | - | |
981 | | - | |
| 982 | + | |
| 983 | + | |
982 | 984 | | |
983 | 985 | | |
984 | 986 | | |
985 | 987 | | |
986 | 988 | | |
987 | | - | |
988 | | - | |
989 | | - | |
990 | | - | |
991 | | - | |
992 | | - | |
993 | | - | |
| 989 | + | |
| 990 | + | |
| 991 | + | |
| 992 | + | |
| 993 | + | |
| 994 | + | |
| 995 | + | |
| 996 | + | |
| 997 | + | |
| 998 | + | |
| 999 | + | |
| 1000 | + | |
| 1001 | + | |
| 1002 | + | |
994 | 1003 | | |
995 | 1004 | | |
996 | 1005 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | | - | |
| 15 | + | |
16 | 16 | | |
17 | 17 | | |
18 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
279 | 279 | | |
280 | 280 | | |
281 | 281 | | |
282 | | - | |
283 | | - | |
284 | | - | |
285 | | - | |
| 282 | + | |
| 283 | + | |
286 | 284 | | |
287 | 285 | | |
288 | 286 | | |
| |||
0 commit comments