Skip to content

Commit

Permalink
Correctly pass SocketAddress through to Request convenience initi…
Browse files Browse the repository at this point in the history
…aliser (#2685)

* Fix missing assignment in `Request` convenience init

* Fix typo
  • Loading branch information
davdroman committed Sep 16, 2021
1 parent a8bd13f commit 21af9d0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions Sources/Vapor/Request/Request.swift
Expand Up @@ -168,6 +168,7 @@ public final class Request: CustomStringConvertible {
version: version,
headersNoUpdate: headers,
collectedBody: collectedBody,
remoteAddress: remoteAddress,
logger: logger,
on: eventLoop
)
Expand Down
2 changes: 1 addition & 1 deletion Tests/VaporTests/RequestTests.swift
Expand Up @@ -2,7 +2,7 @@ import XCTVapor

final class RequestTests: XCTestCase {

func testCustomHostAdress() throws {
func testCustomHostAddress() throws {
let app = Application(.testing)
defer { app.shutdown() }

Expand Down

0 comments on commit 21af9d0

Please sign in to comment.