Skip to content

Commit

Permalink
Support ordered dictionaries from URL Routing 0.4.0 (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
stephencelis authored Nov 8, 2022
1 parent 29f4cf9 commit d16c7f8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Package.resolved
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion Sources/VaporRouting/URLRequestData+Vapor.Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit d16c7f8

Please sign in to comment.