h3 1.15.7 → 1.15.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +4 -4
- package/dist/index.mjs +4 -4
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -2152,10 +2152,10 @@ function cachedFn(fn) {
|
|
|
2152
2152
|
}
|
|
2153
2153
|
function _decodePath(url) {
|
|
2154
2154
|
const qIndex = url.indexOf("?");
|
|
2155
|
-
|
|
2156
|
-
|
|
2157
|
-
|
|
2158
|
-
return
|
|
2155
|
+
const path = qIndex === -1 ? url : url.slice(0, qIndex);
|
|
2156
|
+
const query = qIndex === -1 ? "" : url.slice(qIndex);
|
|
2157
|
+
const decodedPath = path.includes("%25") ? ufo.decodePath(path.replace(/%25/g, "%2525")) : ufo.decodePath(path);
|
|
2158
|
+
return decodedPath + query;
|
|
2159
2159
|
}
|
|
2160
2160
|
function websocketOptions(evResolver, appOptions) {
|
|
2161
2161
|
return {
|
package/dist/index.mjs
CHANGED
|
@@ -2145,10 +2145,10 @@ function cachedFn(fn) {
|
|
|
2145
2145
|
}
|
|
2146
2146
|
function _decodePath(url) {
|
|
2147
2147
|
const qIndex = url.indexOf("?");
|
|
2148
|
-
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
return
|
|
2148
|
+
const path = qIndex === -1 ? url : url.slice(0, qIndex);
|
|
2149
|
+
const query = qIndex === -1 ? "" : url.slice(qIndex);
|
|
2150
|
+
const decodedPath = path.includes("%25") ? decodePath(path.replace(/%25/g, "%2525")) : decodePath(path);
|
|
2151
|
+
return decodedPath + query;
|
|
2152
2152
|
}
|
|
2153
2153
|
function websocketOptions(evResolver, appOptions) {
|
|
2154
2154
|
return {
|