amp-library
amp-library copied to clipboard
Set the correct scheme to transform the img tag
fix #213
@blauerberg looks good. Can you create a test for this as well?
hmm, this problem will occured only below condition:
- img tag that has relative path, and does'nt have 'width', 'height' attribute
In this case, it will access the image with "http" scheme to get 'width', 'height' of image even if original access is https.
But upload.wikimedia.org seems to redirect http to https. Maybe we need the some URI that just accept only 'https' for test.