18F / jekyll-get

DEPRECATED - see https://github.com/brockfanning/jekyll-get-json instead
Other
212 stars 32 forks source link

url redirect #20

Open designerwebhosting opened 7 years ago

designerwebhosting commented 7 years ago

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.

designerwebhosting commented 7 years ago

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