mirror of
https://github.com/s3fs-fuse/s3fs-fuse.git
synced 2025-01-22 13:28:25 +00:00
Fixed a bug(failed all multi head request when mounting bucket+path)
1) Fixes a bug When the mount point is specified with sub-directory(mounting with "bucket:/path"), internally all curl_multi head request in s3fs_readdir() function failed. This reason is that the head curl_multi request is not specified with mount path. This is a bug, and fixed. git-svn-id: http://s3fs.googlecode.com/svn/trunk@431 df820570-a93a-0410-bd06-b72b767a4274
This commit is contained in:
parent
7aa11f389a
commit
2d51439dcb
@ -39,11 +39,13 @@
|
||||
#include <string>
|
||||
#include <map>
|
||||
#include <algorithm>
|
||||
#include <list>
|
||||
|
||||
#include "common.h"
|
||||
#include "curl.h"
|
||||
#include "string_util.h"
|
||||
#include "s3fs.h"
|
||||
#include "s3fs_util.h"
|
||||
|
||||
using namespace std;
|
||||
|
||||
@ -378,9 +380,10 @@ int curl_get_headers(const char *path, headers_t &meta)
|
||||
|
||||
CURL *create_head_handle(head_data *request_data)
|
||||
{
|
||||
CURL *curl_handle = create_curl_handle();
|
||||
string resource = urlEncode(service_path + bucket + request_data->path);
|
||||
string url = host + resource;
|
||||
CURL *curl_handle= create_curl_handle();
|
||||
string realpath = get_realpath(request_data->path.c_str());
|
||||
string resource = urlEncode(service_path + bucket + realpath);
|
||||
string url = host + resource;
|
||||
|
||||
// libcurl 7.17 does deep copy of url, deep copy "stable" url
|
||||
string my_url = prepare_url(url.c_str());
|
||||
|
Loading…
x
Reference in New Issue
Block a user