diff options
| author | Dan Winship <danw@gnome.org> | 2009-11-21 09:32:21 -0500 |
|---|---|---|
| committer | Dan Winship <danw@gnome.org> | 2009-11-21 09:32:21 -0500 |
| commit | 4af6f29c5e3e84fdaaa19798e72686db91069458 (patch) | |
| tree | 9185e33c1ac1486cddc2ce2776ae955c577af2c6 /libsoup/soup-uri.c | |
| parent | 4a3bdacd4a5119150dc0eb317bcc287867574477 (diff) | |
| download | libsoup-4af6f29c5e3e84fdaaa19798e72686db91069458.tar.gz | |
SOUP_URI_VALID_FOR_HTTP: update to check uri->path too
Diffstat (limited to 'libsoup/soup-uri.c')
| -rw-r--r-- | libsoup/soup-uri.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libsoup/soup-uri.c b/libsoup/soup-uri.c index 4f8610b6..8cb49fd6 100644 --- a/libsoup/soup-uri.c +++ b/libsoup/soup-uri.c @@ -350,12 +350,12 @@ soup_uri_new_with_base (SoupURI *base, const char *uri_string) /* HTTP-specific stuff */ if (uri->scheme == SOUP_URI_SCHEME_HTTP || uri->scheme == SOUP_URI_SCHEME_HTTPS) { + if (!uri->path) + uri->path = g_strdup ("/"); if (!SOUP_URI_VALID_FOR_HTTP (uri)) { soup_uri_free (uri); return NULL; } - if (!uri->path) - uri->path = g_strdup ("/"); } if (!uri->port) |
