mirror of
https://github.com/open-webui/open-webui.git
synced 2026-03-22 14:13:08 -05:00
[PR #3049] [MERGED] Refactor URL validation function #7969
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/open-webui/open-webui/pull/3049
Author: @que-nguyen
Created: 6/12/2024
Status: ✅ Merged
Merged: 6/12/2024
Merged by: @tjbck
Base:
dev← Head:dev📝 Commits (1)
eb7bba8Refactor URL validation function📊 Changes
1 file changed (+7 additions, -23 deletions)
View changed files
📝
backend/apps/rag/main.py(+7 -23)📄 Description
[Errno -2] Name or service not known. (related #2839)validate_urlfunction to focus on validating the URL format and checking the existence of the URL using a HEAD request. Checking with HEAD requests is generally faster and more accurate as it validates whether the web resource actually exists.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.