summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorNick White <hg@njw.me.uk>2011-07-16 12:57:49 +0100
committerNick White <hg@njw.me.uk>2011-07-16 12:57:49 +0100
commit5c67237f618de1b8f9b780a0f9ea6bb2ef84d20c (patch)
treeed743f40a87c2d3697661cc2163291d33b63011d /util.c
parent4c5740f8a747cc886d2b7bd807300818e3be22a9 (diff)
Fix host usage in get()
Diffstat (limited to 'util.c')
-rw-r--r--util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util.c b/util.c
index fc5c5c5..8fa00bd 100644
--- a/util.c
+++ b/util.c
@@ -40,7 +40,7 @@ char *get(char *host, char *path) {
char *buf, *c, *p;
FILE *srv;
- fd = dial("books.google.com", "80");
+ fd = dial(host, "80");
srv = fdopen(fd, "r+");
fprintf(srv, "GET %s HTTP/1.0\r\nUser-Agent: getgbook-"VERSION" (not mozilla)\r\nHost: %s\r\n\r\n", path, host);