Skip to content

Commit

Permalink
Merge pull request #62 from briancordanyoung/main
Browse files Browse the repository at this point in the history
Fix withResponse() to respect the original method
  • Loading branch information
kean authored Sep 21, 2022
2 parents d188d69 + cc78eec commit 7092931
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Get/Request.swift
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ public struct Request<Response>: @unchecked Sendable {
self.id = id
}

/// Initialiazes the request with the given parameters.
/// Initializes the request with the given parameters.
public init(
path: String,
method: HTTPMethod = .get,
Expand All @@ -59,7 +59,7 @@ public struct Request<Response>: @unchecked Sendable {

private init(optionalUrl: URL?, method: HTTPMethod) {
self.url = optionalUrl
self.method = .get
self.method = method
}

/// Changes the response type keeping the rest of the request parameters.
Expand Down

0 comments on commit 7092931

Please sign in to comment.