2
3
Fork
You've already forked OfftiFine
0

Use HTTPS for cape download #1

Merged
owlsys merged 2 commits from :change/https into ornithe 2026年01月27日 09:02:15 +01:00
Contributor
Copy link

Makes cape downloads use HTTPS... I didn't know whether or not if y'all would want this behind a config option so lmk

Uses https://optifine.net/capes/ rather than https://s.optifine.net/capes/ as sp614x said here

Makes cape downloads use HTTPS... I didn't know whether or not if y'all would want this behind a config option so lmk Uses `https://optifine.net/capes/` rather than `https://s.optifine.net/capes/` as sp614x said [here](https://github.com/sp614x/optifine/issues/4701#issuecomment-681624350)
Use HTTPS for cape download
Some checks are pending
Automated build / build (pull_request) Blocked by required conditions
4af7fbe613

There is little wrong with your idea in general. However, I think there are possible improvements regarding the implementation.

Ideally, you'd make use of @ModifyArg (on the usage of ofCapeUrl or on the StringBuilder#append that is used for the concat) or @ModifyVariable and then String#replace the old URL with the new one. This would allow other mods to also be able to modify this url if they desire without changes being silently overridden or the game crashing.

There is little wrong with your idea in general. However, I think there are possible improvements regarding the implementation. Ideally, you'd make use of `@ModifyArg` (on the usage of `ofCapeUrl` or on the `StringBuilder#append` that is used for the concat) or `@ModifyVariable` and then `String#replace` the old URL with the new one. This would allow other mods to also be able to modify this url if they desire without changes being silently overridden or the game crashing.
Adjust injector for HTTPS cape download.
Some checks failed
Automated build / build (pull_request) Has been cancelled
ce231e075e

Thank you.

Thank you.
Some checks failed
Automated build / build (pull_request) Has been cancelled
Some workflows are waiting to be reviewed.
Sign in to join this conversation.
No reviewers
Labels
Clear labels
No items
No labels
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
owlsys/OfftiFine!1
Reference in a new issue
owlsys/OfftiFine
No description provided.
Delete branch ":change/https"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?