Skip to content

Commit

Permalink
Fixed bug that caused device code requests to be made with wrong method.
Browse files Browse the repository at this point in the history
  • Loading branch information
erikdoe committed Jan 19, 2024
1 parent dbf860a commit b974272
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion CCMenu/Source/Server Monitor/GitHubAPI.swift
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class GitHubAPI {
var components = URLComponents(string: baseUrl)!
components.path = path
components.queryItems = params.map({ URLQueryItem(name: $0.key, value: $0.value) })
return makeRequest(url: components.url!, token: token)
return makeRequest(method: method, url: components.url!, token: token)
}

private static func makeRequest(method: String = "GET", url: URL, token: String?) -> URLRequest {
Expand Down

0 comments on commit b974272

Please sign in to comment.