local-ch / lhs

⚛️ REST services accelerator: Rails gem providing an easy, active-record-like interface for http (hypermedia) json services
GNU General Public License v3.0
137 stars 3 forks source link

Do not follow Location header when followlocation option is set to false #405

Closed dimameshcharakou closed 3 years ago

dimameshcharakou commented 3 years ago

Description

We already use followlocation option in lhc when we want to follow the redirects: https://github.com/local-ch/lhc/blob/master/README.md#follow-redirects This PR adds the changes that lhs takes into account this option when it's going to follow the Location header in the response. Only minor release since the default behaviour hasn't changed.