diff options
author | Daniel Stenberg <daniel@haxx.se> | 2018-09-14 23:33:28 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2018-09-20 09:04:11 +0200 |
commit | b4016899dc29f5a1fa8764f958cb27d8a400e842 (patch) | |
tree | 1f565b4f78dc3117b6cc30fd3841fed4a15e9054 /lib/file.c | |
parent | 5c73093edb3bd527db9c8abdee53d0f18e6a4cc1 (diff) | |
download | curl-bagder/urlapi-internal.tar.gz |
url: use the URL API internally as wellbagder/urlapi-internal
... to make it a truly unified URL parser.
Closes #3017
Diffstat (limited to 'lib/file.c')
-rw-r--r-- | lib/file.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/file.c b/lib/file.c index 542f34a45..3cfa0e703 100644 --- a/lib/file.c +++ b/lib/file.c @@ -143,7 +143,7 @@ static CURLcode file_connect(struct connectdata *conn, bool *done) #endif size_t real_path_len; - CURLcode result = Curl_urldecode(data, data->state.path, 0, &real_path, + CURLcode result = Curl_urldecode(data, data->state.up.path, 0, &real_path, &real_path_len, FALSE); if(result) return result; @@ -197,7 +197,7 @@ static CURLcode file_connect(struct connectdata *conn, bool *done) file->fd = fd; if(!data->set.upload && (fd == -1)) { - failf(data, "Couldn't open file %s", data->state.path); + failf(data, "Couldn't open file %s", data->state.up.path); file_done(conn, CURLE_FILE_COULDNT_READ_FILE, FALSE); return CURLE_FILE_COULDNT_READ_FILE; } |