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

AMP headers #148

Merged
merged 2 commits into from
Nov 21, 2017
Merged

AMP headers #148

merged 2 commits into from
Nov 21, 2017

Conversation

maxime-michel
Copy link

@maxime-michel maxime-michel commented Nov 14, 2017

As discussed in #143. I tried to add a config toggle initially, but couldn't make that idea to work. But I actually like it better this way, it's automagic.

I haven't been able to actually test it yet: although I follow the instructions regarding the GitHub token & the SSH key, I end up with the following error: Error: Key format must be specified

If the __amp_source_origin query string is found in a submission's
request, then add AMP-specific HTTP headers to the response from
Staticman. That way the query will be successful on the AMP page, it
would abort for security reasons otherwise.
@maxime-michel
Copy link
Author

@eduardoboucas sorry to bother you as I imagine you're short on time, but did you get a chance to look at this?

@eduardoboucas
Copy link
Owner

Hey @maxime-michel, sorry for the delayed response. I've had a first look through the PR and it looks good!

I have pushed to dev a fix for the broken tests – would you mind rebasing from dev to see if we can get them to pass?

After that, I think we're ready to merge this to dev and deploy it to the dev instance.

Thanks for your effort, it's top notch!

@eduardoboucas
Copy link
Owner

Actually, tests are passing now. Merging!

@eduardoboucas eduardoboucas merged commit cc8f157 into eduardoboucas:dev Nov 21, 2017
This was referenced Nov 21, 2017
@maxime-michel maxime-michel deleted the AMP-headers branch November 22, 2017 10:13
caiopavanelli pushed a commit to caiopavanelli/staticman that referenced this pull request Aug 17, 2020
Added Bitbucket social button to social.toml and the exampleSite.
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

Successfully merging this pull request may close these issues.

2 participants