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

Fix wrong sponsors images from OC #4334

Merged
merged 1 commit into from Jun 14, 2020

Conversation

outsideris
Copy link
Member

After merging #4318 , building our docs are failed with Error: Unsupported image type. See here or here

One of our backers(id is 7mywxoz3-409rl6ka-anpvenbd-j7gk85ag)'s avatar URL is https://images.opencollective.com/andréleifeld/97285d0/avatar/32.png. Because é character in path, cloudflare return blocked HTML page instead avatar image.

스크린샷 2020-06-13 20 26 53

This HTML page is Sorry, you have been blocked. You are unable to access opencollective.com. So, the image has png extension but it is not an image.

I'm not sure whether it is needle's problem or cloudflare's problem.

But, we should encode avatar URL before request it.

Signed-off-by: Outsider <outsideris@gmail.com>
@outsideris outsideris added area: documentation anything involving docs or mochajs.org area: website involving mochajs.org, but not necessarily involving docs and removed area: documentation anything involving docs or mochajs.org labels Jun 13, 2020
@coveralls
Copy link

Coverage Status

Coverage increased (+0.03%) to 93.795% when pulling cd640ce on outsideris:fix-oc-image-patch into f073689 on mochajs:master.

@juergba juergba requested a review from Munter June 14, 2020 07:43
@Munter
Copy link
Member

Munter commented Jun 14, 2020

Great find!

@Munter Munter merged commit 9d4a8ec into mochajs:master Jun 14, 2020
@boneskull boneskull added this to the next milestone Jul 29, 2020
@boneskull boneskull added the semver-patch implementation requires increase of "patch" version number; "bug fixes" label Jul 29, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: documentation anything involving docs or mochajs.org area: website involving mochajs.org, but not necessarily involving docs semver-patch implementation requires increase of "patch" version number; "bug fixes"
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants