Skip to content

Commit e1ee0be

Browse files
committed
added user agent to curl
1 parent 226897e commit e1ee0be

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ DBGFLAGS = -g -fsanitize=address
3434

3535
# set local lib to lib/*/*.a
3636
LOCAL_LIBS = $(wildcard lib/*/*.a)
37-
LIBS = ${LOCAL_LIBS} -lcurl -lsqlite3 -lm -lcrypto
37+
LIBS = ${LOCAL_LIBS} -lcurl -lm -lcrypto
3838

3939
# change these to proper directories where each file should be
4040
SRCDIR = src

src/download.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ int download(char* url, FILE* fp)
1717
if(curl)
1818
{
1919
CURLcode res;
20+
curl_easy_setopt(curl, CURLOPT_USERAGENT, "CCCP/1.0 (https://www.sovietlinux.org/)");
2021
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1);
2122
curl_easy_setopt(curl, CURLOPT_URL, url);
2223
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, NULL);

0 commit comments

Comments
 (0)