Skip to content

Commit 4fbffd1

Browse files
committed
修复搜索页面301跳转hub.docker.com的问题
1 parent 4ca24f9 commit 4fbffd1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

_worker.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ export default {
399399
});
400400
}
401401
} else {
402-
if (fakePage) url.hostname = 'registry.hub.docker.com';
402+
if (fakePage) url.hostname = 'hub.docker.com';
403403
if (url.searchParams.get('q')?.includes('library/') && url.searchParams.get('q') != 'library/') {
404404
const search = url.searchParams.get('q');
405405
url.searchParams.set('q', search.replace('library/', ''));

0 commit comments

Comments
 (0)