Skip to content

Conversation

@emyfops
Copy link
Collaborator

@emyfops emyfops commented Apr 13, 2025

This pull request replaces Fuel by Ktor
In order to include ktor correctly, some changes were required in the build files

@github-actions github-actions bot added triage Requires labelling or review 1.20 labels Apr 13, 2025
@emyfops emyfops requested a review from Copilot April 13, 2025 01:21
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot reviewed 9 out of 13 changed files in this pull request and generated 2 comments.

Files not reviewed (4)
  • common/build.gradle.kts: Language not supported
  • fabric/build.gradle.kts: Language not supported
  • forge/build.gradle.kts: Language not supported
  • gradle.properties: Language not supported

contentType(ContentType.Application.Json)
}

check(resp.status == HttpStatusCode.OK)
Copy link

Copilot AI Apr 13, 2025

Choose a reason for hiding this comment

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

Using 'check' to validate the response status may obscure error details if the request fails. Consider returning a Result with a descriptive error or throwing a custom exception that provides more context.

Copilot uses AI. Check for mistakes.
Comment on lines +77 to +85
val output = ByteArrayOutputStream()

LambdaHttp.download(cape.url, output)

val bytes = output.toByteArray()
destination.writeBytes(bytes)

val image = TextureUtils.readImage(bytes)
val native = NativeImageBackedTexture(image)
Copy link

Copilot AI Apr 13, 2025

Choose a reason for hiding this comment

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

[nitpick] Since LambdaHttp provides an overload to write directly to a file, consider using that version instead of writing to a ByteArrayOutputStream and then saving the bytes manually.

Copilot uses AI. Check for mistakes.
@emyfops emyfops added ignore-for-release Don't include this label in the release changelog and removed triage Requires labelling or review labels Apr 13, 2025
@emyfops emyfops merged commit 3c6a8a9 into master Apr 13, 2025
2 of 3 checks passed
@emyfops emyfops deleted the ref/http branch April 17, 2025 22:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ignore-for-release Don't include this label in the release changelog

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants