Skip to content
This repository has been archived by the owner on Dec 27, 2019. It is now read-only.

url redirect #20

Open
designerwebhosting opened this issue May 25, 2017 · 1 comment
Open

url redirect #20

designerwebhosting opened this issue May 25, 2017 · 1 comment

Comments

@designerwebhosting
Copy link

designerwebhosting commented May 25, 2017

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
Copy link
Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant