mirror of
https://github.com/OpenHands/OpenHands.git
synced 2026-10-07 13:18:19 +08:00
On Windows, path.relative() returns backslash-separated paths, but ALLOWED_AD_HOC_HTTP_FILES uses forward slashes. The Set.has() check therefore never matches on Windows, causing false positive violations. Normalize relPath to forward slashes before the check so the test passes correctly on all platforms. Co-authored-by: openhands <openhands@all-hands.dev>