local-ch / lhc

🚀 Advanced HTTP Client for Ruby. Fueled with interceptors.
GNU General Public License v3.0
43 stars 1 forks source link

URL: Optionally unencoded #113

Closed 10xSebastian closed 6 years ago

10xSebastian commented 6 years ago

MINOR VERSION

Encoding

LHC by default, encodes urls:

LHC.get('http://local.ch?q=some space')
# http://local.ch?q=some%20space

LHC.get('http://local.ch', params: { q: 'some space' })
# http://local.ch?q=some%20space

which can be disabled:

LHC.get('http://local.ch?q=some space', url_encoding: false)
# http://local.ch?q=some space
Averethel commented 6 years ago

Thanks I for taking care of this