Skip to content

Commit 9a52c7b

Browse files
Fix remaining use of merge instead of URI (#193)
* Fix remaining use of merge instead of URI * Fix syntax * Bump patch version
1 parent 20794b9 commit 9a52c7b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Project.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "GitHub"
22
uuid = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26"
3-
version = "5.7.1"
3+
version = "5.7.2"
44

55
[deps]
66
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"

src/utils/requests.jl

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function github_request(api::GitHubAPI, request_method, endpoint;
6161
_headers = convert(Dict{String, String}, headers)
6262
!haskey(_headers, "User-Agent") && (_headers["User-Agent"] = "GitHub-jl")
6363
if request_method == HTTP.get
64-
r = request_method(merge(api_endpoint, query = params), _headers, redirect = allowredirects, status_exception = false, idle_timeout=20)
64+
r = request_method(URIs.URI(api_endpoint, query = params), _headers, redirect = allowredirects, status_exception = false, idle_timeout=20)
6565
else
6666
r = request_method(string(api_endpoint), _headers, JSON.json(params), redirect = allowredirects, status_exception = false, idle_timeout=20)
6767
end

0 commit comments

Comments
 (0)