diff mbox series

[v6,1/3] gweb: Rename 'parse_url'.

Message ID AF4B5E8C-A0E5-464C-B48D-3325095D5F3A@nuovations.com (mailing list archive)
State Not Applicable, archived
Headers show
Series gweb: refactor parse_url for IPv6 addresses. | expand

Commit Message

Grant Erickson Nov. 11, 2023, 5:45 p.m. UTC
This renames 'parse_url' to 'parse_request_and_proxy_urls' to more
accurately reflect its role and function in processing BOTH a request
URL and, optionally, a proxy URL for the specified web request session.
---
 gweb/gweb.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/gweb/gweb.c b/gweb/gweb.c
index 97ff0ab21f69..b68ec123438f 100644
--- a/gweb/gweb.c
+++ b/gweb/gweb.c
@@ -1110,7 +1110,7 @@  static int create_transport(struct web_session *session)
 	return 0;
 }
 
-static int parse_url(struct web_session *session,
+static int parse_request_and_proxy_urls(struct web_session *session,
 				const char *url, const char *proxy)
 {
 	char *scheme, *host, *port, *path;
@@ -1300,7 +1300,7 @@  static guint do_request(GWeb *web, const char *url,
 	if (!session)
 		return 0;
 
-	if (parse_url(session, url, web->proxy) < 0) {
+	if (parse_request_and_proxy_urls(session, url, web->proxy) < 0) {
 		free_session(session);
 		return 0;
 	}