Pablo Crivella
Pablo Crivella
Assuming there's an endpoint `account/:id/foo` that updates the account and returns: ```json { "account": { "id": 1 } } ``` ```ruby class Account include Her::Model include_root_in_json true parse_root_in_json true, format:...
Currently, when following a redirect, the `HTTP` client keeps the auth headers which creates a problem for example when redirecting from a custom origin to s3. Related resources: https://curl.se/docs/CVE-2018-1000007.html https://nvd.nist.gov/vuln/detail/CVE-2021-31879
``` ruby [14] pry(main)> r = socket.status => #""}, @headers={:content_type=>"api/response", :content_length=>"362"}> ``` I'm using ruby 2.2.1
I'm having a hard time understanding how to do this automatically, is this posible?