Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

link tag with default user-agent can't avoid 400 error #173

Open
mikebridge opened this issue Aug 28, 2019 · 0 comments
Open

link tag with default user-agent can't avoid 400 error #173

mikebridge opened this issue Aug 28, 2019 · 0 comments

Comments

@mikebridge
Copy link

mikebridge commented Aug 28, 2019

When I have a link in the header of an email that points to e.g. https://fonts.googleapis.com/css?family=Roboto&display=swap, Premailer sees a 400 error when following that link. It looks like Google is filtering clients by UserAgent---when I use a standard browser user agent in curl I get a 200 return status.

I'm not sure whether it's better to just exclude these links, but it might be nice if it were possible to be able to ignore a 400 error and continue parsing or else allow the caller to configure the user agent.

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

No branches or pull requests

1 participant