Support ordered dictionaries from URL Routing 0.4.0 (#20)

This commit is contained in:
Stephen Celis 2022-11-08 09:16:48 -08:00 committed by GitHub
parent 29f4cf948f
commit d16c7f8ab9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 4 deletions

View File

@ -195,8 +195,8 @@
"repositoryURL": "https://github.com/pointfreeco/swift-url-routing",
"state": {
"branch": null,
"revision": "80e8a0257ccdd639e31f709954ceca6b690fdc67",
"version": "0.3.1"
"revision": "f54c4f74e7884f7930560c08387817ce28271770",
"version": "0.4.0"
}
},
{

View File

@ -15,7 +15,7 @@ let package = Package(
],
dependencies: [
.package(url: "https://github.com/vapor/vapor.git", from: "4.0.0"),
.package(url: "https://github.com/pointfreeco/swift-url-routing", from: "0.1.0"),
.package(url: "https://github.com/pointfreeco/swift-url-routing", from: "0.4.0"),
],
targets: [
.target(

View File

@ -36,7 +36,7 @@ extension URLRequestData {
query: components.queryItems?.reduce(into: [:]) { query, item in
query[item.name, default: []].append(item.value)
} ?? [:],
headers: Dictionary(
headers: .init(
request.headers.map { key, value in
(
key,