Commit c8f89f5
fix: read Host header from request.head.authority instead of HTTPFields
swift-http-types strips the Host header from the HTTPFields collection
and stores it in HTTPRequest.authority for HTTP/1.1 Host and HTTP/2
:authority compatibility. This caused all requests to fail with
"Host not allowed" since request.uri.host is nil for standard HTTP
requests where the URI is just "/".
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent f146938 commit c8f89f5
File tree
1 file changed
+3
-1
lines changed- swift/Sources/iMessageMax/Server
1 file changed
+3
-1
lines changedLines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
59 | 61 | | |
60 | 62 | | |
61 | 63 | | |
| |||
0 commit comments