Skip to content

Updated base URL for fetching news images#1443

Merged
Eskaan merged 1 commit intogorilla-devs:masterfrom
pola:master
Jan 16, 2023
Merged

Updated base URL for fetching news images#1443
Eskaan merged 1 commit intogorilla-devs:masterfrom
pola:master

Conversation

@pola
Copy link
Copy Markdown
Contributor

@pola pola commented Aug 29, 2022

Purpose

When fetching news from Mojang, there is typically an image to each news item. The base URL of the image should be https://www.minecraft.net/, and not https://minecraft.net/.

Approach

The change in this pull request ensures that https://www.minecraft.net/ is used as the base URL when fetching news images.

@CLAassistant
Copy link
Copy Markdown

CLAassistant commented Aug 29, 2022

CLA assistant check
All committers have signed the CLA.

@Eskaan
Copy link
Copy Markdown
Collaborator

Eskaan commented Aug 30, 2022

Why is this necessary? Could you please leave sources?

@pola
Copy link
Copy Markdown
Contributor Author

pola commented Aug 30, 2022

https://minecraft.net is redirecting to https://www.minecraft.net. By setting the base URL to the latter, the launcher avoids having to establish more HTTP client connections than necessary, when fetching news images.

Source: I work with infrastructure at Mojang

@Eskaan Eskaan merged commit efa324a into gorilla-devs:master Jan 16, 2023
Eskaan pushed a commit to Eskaan/GDLauncher that referenced this pull request Nov 15, 2023
Eskaan pushed a commit to Eskaan/GDLauncher that referenced this pull request Nov 17, 2023
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