diff --git a/gui.pnproj b/gui.pnproj index 88e7a16f..bcbc3f09 100644 --- a/gui.pnproj +++ b/gui.pnproj @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/gui.pnps b/gui.pnps index db1e67ac..52f4eb57 100644 --- a/gui.pnps +++ b/gui.pnps @@ -1 +1 @@ - \ No newline at end of file + \ No newline at end of file diff --git a/source/network/http.c b/source/network/http.c index c2b24d92..b35dba1e 100644 --- a/source/network/http.c +++ b/source/network/http.c @@ -174,9 +174,9 @@ struct block downloadfile(const char *url) { } //Form a nice request header to send to the webserver - char* headerformat = "GET %s HTTP/1.1\r\nHost: %s\r\nReferer: %s\r\nUser-Agent: USBLoaderGX r%s\r\n\r\n";; - char header[strlen(headerformat) + strlen(domain) + strlen(path)+strlen(url)]; - sprintf(header, headerformat, path, domain, url, GetRev()); + char* headerformat = "GET %s HTTP/1.1\r\nHost: %s\r\nUser-Agent: USBLoaderGX r%s\r\n\r\n";; + char header[strlen(headerformat) + strlen(domain) + strlen(path)]; + sprintf(header, headerformat, path, domain, GetRev()); //Do the request and get the response send_message(connection, header);