Skip to content

Refactor local proxy server code so it supports Viewer style URL: /v/#7580

Merged
lannka merged 2 commits intoampproject:masterfrom
lannka:proxy_refactor
Feb 16, 2017
Merged

Refactor local proxy server code so it supports Viewer style URL: /v/#7580
lannka merged 2 commits intoampproject:masterfrom
lannka:proxy_refactor

Conversation

@lannka
Copy link
Copy Markdown
Contributor

@lannka lannka commented Feb 15, 2017

Also cleaned up the URL string replacement code.

Copy link
Copy Markdown
Member

@cramforce cramforce left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lovely. One comment.

var url = 'https://cdn.ampproject.org/'
+ (req.query['amp_js_v'] ? 'v' : 'c')
+ req.url;
console.log('Fetching URL:' + url);
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Want to keep? Then add space after :

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

@lannka lannka merged commit b0a09a9 into ampproject:master Feb 16, 2017
@lannka lannka deleted the proxy_refactor branch February 16, 2017 16:19
mrjoro pushed a commit to mrjoro/amphtml that referenced this pull request Apr 28, 2017
…ampproject#7580)

* Refactor local proxy server code so it supports Viewer style URL: /v/

* address comment
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants