Quantcast
Channel: FeedBunch:34cac4333624170fed210ff2d113469c380d7398 commits
Viewing all articles
Browse latest Browse all 39

Enable following redirects in RestClient.

$
0
0
RestClient should follow redirects automatically, but I'm getting errors when a server returns a 301 code. It's probably caused by the rest-client-components gem, which I need for client-side HTTP caching; it's mostly unmaintained and it seems it breaks the redirect-following feature of RestClient somewhat. Explicitly adding a parameter to RestClient.get to indicate the maximum number of redirects to follow before throwing an error seems to fix it.

Viewing all articles
Browse latest Browse all 39

Trending Articles