X-Git-Url: https://git.street.me.uk/andy/viking.git/blobdiff_plain/3292ba8bb8e85babc44cb4f831f9b758089f1cfc..5dab4f3fa3c22facc679ba558dd6987d3d8f34e0:/src/http.c?ds=inline diff --git a/src/http.c b/src/http.c index b8e0dab5..6bbde741 100644 --- a/src/http.c +++ b/src/http.c @@ -88,7 +88,7 @@ int http_get_line(int sock, char *buf, int len) return 1; } -int http_download_get_url ( const char *hostname, const char *uri, FILE *f, int already_redirected, int sendhostname ) +int http_download_get_url ( const char *hostname, const char *uri, FILE *f, int already_redirected, DownloadOptions *options ) { static char input_buffer[1024]; int sock; @@ -108,7 +108,7 @@ int http_download_get_url ( const char *hostname, const char *uri, FILE *f, int } - if ( sendhostname ) { + if ( options != NULL && options->sendhostname ) { send ( sock, "GET http://", 11, 0); send ( sock, hostname, strlen(hostname), 0 ); send ( sock, uri, strlen ( uri ), 0 );