Commit 63ba8b0
committed
Net: work around handling of empty PathAndQuery in
An absolute http::uri::Uri with an empty but set PathAndQuery ("") will
pretend that the path is "/" for comparison, display or HTTP request
construction purposes. However, a relative URI constructed from such
PathAndQuery will be empty.
A directory URI without a path (i.e. "https://example.com") thus
resulted in an empty path in the request line and 400 Bad Request from
the server.
Fixes #97.http.1 parent 5ad82a1 commit 63ba8b0
3 files changed
+14
-17
lines changedSome generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
| 16 | + | |
17 | 17 | | |
18 | 18 | | |
19 | 19 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
107 | 107 | | |
108 | 108 | | |
109 | 109 | | |
110 | | - | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
111 | 121 | | |
112 | 122 | | |
113 | 123 | | |
114 | 124 | | |
115 | 125 | | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | 126 | | |
123 | 127 | | |
124 | 128 | | |
| |||
0 commit comments