Kong / Kong/unirest-ruby

URI.escape is obsolete

Open
#54 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Ruby
Stars
364
Forks
76
PR merge metrics
No merged PRs in 30d

Description

I'm using `unirest-1.0.8` on ruby 2.7.0`

Calling a simple GET request the console shows me

`http_request.rb:46: warning: URI.escape is obsolete`

Some documentation related to the issue:

[](https://docs.knapsackpro.com/2020/uri-escape-is-obsolete-percent-encoding-your-query-string)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with http_request.rb:46 and reproduce the warning by making a simple GET request with unirest-1.0.8 on Ruby 2.7.0. Check the surrounding request and URI handling before choosing the supported replacement for the obsolete call. Done means the request still succeeds without emitting the URI.escape warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
ruby
Domain
api
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.