local-ch / lhc

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

No instance variable for auth options #182

Closed 10xSebastian closed 4 years ago

10xSebastian commented 4 years ago

https://github.com/local-ch/lhc/releases/tag/v12.1.0 introduced a bug.

Because the auth interceptors uses instance variables for auth_options once it has been initalized with the before_raw_request hook (as used by body auth) other interceptors can not pass auth options anymore even at a later hook (before_request).

This PR removes the instance variable usage and lets auth interceptor always access the original auth option hash. So that other interceptor can prepare those options (like LHS auto auth interceptor).