diff options
author | Nick White <hg@njw.me.uk> | 2011-07-16 12:57:49 +0100 |
---|---|---|
committer | Nick White <hg@njw.me.uk> | 2011-07-16 12:57:49 +0100 |
commit | 5c67237f618de1b8f9b780a0f9ea6bb2ef84d20c (patch) | |
tree | ed743f40a87c2d3697661cc2163291d33b63011d /util.c | |
parent | 4c5740f8a747cc886d2b7bd807300818e3be22a9 (diff) |
Fix host usage in get()
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |