local-ch / lhc

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

Raise exception if passing headers to formatted requests #142

Closed 10xSebastian closed 6 years ago

10xSebastian commented 6 years ago

PATCH Will back port to 10.0.1, too.

This PR introduces exceptions when LHC is asked to set the "Content-Type" or "Accept" (in case of json), when the request is already formatted!