You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: extensions/intellij/src/main/kotlin/com/github/continuedev/continueintellijextension/factories/CustomhandlerFactory.kt
+4-1Lines changed: 4 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -111,7 +111,10 @@ class OpenedConnection(private val connection: URLConnection?) :
111
111
) {
112
112
try {
113
113
if (connection !=null) {
114
-
val url = connection.url.toString()
114
+
val fullUrl = connection.url.toString()
115
+
// Extract only the resource path after the JAR prefix to prevent incorrect mime type matching
116
+
// (e.g., if a user's home folder contains "js" in the path)
117
+
val url = fullUrl.substringAfterLast("jar!/", fullUrl)
0 commit comments