mirror of
https://github.com/apple/swift-nio-http2
synced 2026-11-27 05:04:23 +00:00
Clean up new NIO breaking changes. (#56)
Motivation: Code should be able to compile. Modifications: - Add necessary force-unwraps to ByteBufferViews. - Remove use of now-dead HTTPHeaders storage and indices API. Result: No compile errors.
This commit is contained in:
1 parent
55a73ed12a
commit
d2697cf0d4
7 files changed
+27
-35
No files matched your search
@@ -430,7 +430,7 @@ fileprivate extension HTTPHeaders {
|
||||
if authority.count > 0 {
|
||||
precondition(authority.count == 1)
|
||||
headers.remove(name: "host")
|
||||
self.add(name: ":authority", value: authority[0])
|
||||
self.add(name: ":authority", value: String(authority[0]))
|
||||
}
|
||||
|
||||
headers.forEach { self.add(name: $0.name, value: $0.value) }
|
||||
|
||||
Reference in new issue
Block a user