File tree Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Expand file tree Collapse file tree 2 files changed +11
-3
lines changed Original file line number Diff line number Diff line change @@ -37,12 +37,16 @@ webserver on the same machine.
3737No worries, says the power that controls what URLs look like, we
3838will just stick the port number after the IP# with a colon:
3939
40+ .. code-block :: text
41+
4042 http://192.168.0.1:8080/...
4143
4244 That obviously does not work with IPv6, so RFC3986 comes around and
4345says "darn, we didn't think of that" and puts the IPV6 address in
4446[...] giving us:
4547
48+ .. code-block :: text
49+
4650 http://[1080::8:800:200C:417A]:8080/
4751
4852 Remember that "harmless in shells" detail ? Yeah, sorry about that.
@@ -55,11 +59,15 @@ even need to know if it is a IPv4 or IPv6 address in the first place.
5559But it returns the IP# in one buffer and the port number in another,
5660so if you want to format the sockaddr in the by RFC5952 recommended
5761way (the same as RFC3986), you need to inspect the version field
58- in the sockaddr to see if you should do
62+ in the sockaddr to see if you should do:
63+
64+ .. code-block :: text
5965
6066 "%s:%s", host, port
6167
62- or
68+ or:
69+
70+ .. code-block :: text
6371
6472 "[%s]:%s", host, port
6573
Original file line number Diff line number Diff line change @@ -237,7 +237,7 @@ SIGNALS
237237NOTES
238238=====
239239
240- The %r formatter is equivalent to " %m http://%{Host}i%U%q %H" . This
240+ The %r formatter is equivalent to `` %m http://%{Host}i%U%q %H `` . This
241241differs from apache's %r behavior, equivalent to "%m %U%q %H".
242242Furthermore, when using the %r formatter, if the Host header appears
243243multiple times in a single transaction, the first occurrence is used.
You can’t perform that action at this time.
0 commit comments