Skip to content

Commit

Permalink
Fix remaining use of merge instead of URI (#193)
Browse files Browse the repository at this point in the history
* Fix remaining use of merge instead of URI

* Fix syntax

* Bump patch version
  • Loading branch information
jeremiahpslewis committed Jan 13, 2022
1 parent 20794b9 commit 9a52c7b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name = "GitHub"
uuid = "bc5e4493-9b4d-5f90-b8aa-2b2bcaad7a26"
version = "5.7.1"
version = "5.7.2"

[deps]
Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f"
Expand Down
2 changes: 1 addition & 1 deletion src/utils/requests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function github_request(api::GitHubAPI, request_method, endpoint;
_headers = convert(Dict{String, String}, headers)
!haskey(_headers, "User-Agent") && (_headers["User-Agent"] = "GitHub-jl")
if request_method == HTTP.get
r = request_method(merge(api_endpoint, query = params), _headers, redirect = allowredirects, status_exception = false, idle_timeout=20)
r = request_method(URIs.URI(api_endpoint, query = params), _headers, redirect = allowredirects, status_exception = false, idle_timeout=20)
else
r = request_method(string(api_endpoint), _headers, JSON.json(params), redirect = allowredirects, status_exception = false, idle_timeout=20)
end
Expand Down

2 comments on commit 9a52c7b

@fredrikekre
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/52295

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v5.7.2 -m "<description of version>" 9a52c7b29b39afebedf30325521624f8f4d45ce8
git push origin v5.7.2

Please sign in to comment.