From 7524f86827022148ebc5af3c541c581f8e00940b Mon Sep 17 00:00:00 2001
From: dimok321 <15055714+dimok789@users.noreply.github.com>
Date: Thu, 22 Oct 2009 11:51:12 +0000
Subject: [PATCH] *Removed Referer for small files because it seemed to slow
down the download.
---
gui.pnproj | 2 +-
gui.pnps | 2 +-
source/network/http.c | 6 +++---
3 files changed, 5 insertions(+), 5 deletions(-)
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);