18F/jekyll-get

url redirect

Opened this issue · 1 comments

I am using Google apps script to generate my json. However Google uses a redirect for the url and the plugin does not work with the redirection. If I use the temporary url Google sends me to, its fine. I know redirects are often used it may be something to look at for the next update.

For now I am using a work around as the site is still in development.

Thank you and a very useful plugin.

my work around is to add:

require 'open_uri_redirections' # redirect patch
and change
source = JSON.load(open(d['json'], :allow_redirections => :safe)) # line 21