Closed Vu0r1-sec closed 1 month ago
Thank you for reviewing this PR! 😊 I appreciate all the hard work that goes into maintaining the project. If you have any questions or need further adjustments, please let me know!
Hi @Vu0r1-sec , thank you for the PR! I'll make sure to review it this weekend.
Hi, I merged your PR. The provided solution appears to work, I just made some minor formatting changes. Thanks again for the PR. I'll push an update to NuGet shortly.
Hi @fabianwennink, Thank you for merging my PR and for the adjustments you made. I'm glad to hear that the solution works as expected. Looking forward to the update on NuGet. Thanks again for your work on this project and for your valuable contributions to the community.
Description of the Bug: While using the library in a project running on Debian, I encountered a
500 Internal Server Error
when accessing the endpoint:GET /iconcaptcha?payload=xxxxxxxxx
. The issue stems from the fact that the paths for embedded resources are in the formicons\light\icon-{id}.png
. On Windows,Path.Combine(iconPath, $"icon-{id}.png")
produces the correct path. However, on Linux, the\
characters are replaced by/
, which causes path resolution issues.Exception:
Solution: Updated the resource path handling to use
.
as the separator instead of\
or/
. This ensures consistent formatting across different operating systems and corrects the resource retrieval process.