updated user agent string

This commit is contained in:
Fufu Fang 2018-07-24 20:42:02 +01:00
parent 0877ce750b
commit d0cbd8b3ed
2 changed files with 3 additions and 2 deletions

View File

@ -1,5 +1,5 @@
CC=gcc
CFLAGS= -O2 -Wall -Wextra -lgumbo -lcurl -lfuse -lcrypto \
CFLAGS= -g -Wall -Wextra -lgumbo -lcurl -lfuse -lcrypto \
-D_FILE_OFFSET_BITS=64 -DHTTPDIRFS_INFO
OBJ = main.o network.o

View File

@ -400,7 +400,8 @@ static CURL *Link_to_curl(Link *link)
}
/* set up some basic curl stuff */
curl_easy_setopt(curl, CURLOPT_USERAGENT, "mount-http-dir/libcurl");
curl_easy_setopt(curl, CURLOPT_USERAGENT, "httpdirfs - \
https://github.com/fangfufu/httpdirfs");
curl_easy_setopt(curl, CURLOPT_VERBOSE, 0);
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
/* for following directories without the '/' */