From c9dec31ffc78db7edf5b123c3ed1bc7d5a1f19dc Mon Sep 17 00:00:00 2001 From: Jay Freeman Date: Tue, 22 Apr 2008 03:59:35 +0000 Subject: Added support for 301 redirects to the new APT Apple HTTP method. git-svn-id: http://svn.telesphoreo.org/trunk@229 514c082c-b64e-11dc-b46d-3d985efe055d --- data/apt/cfnetwork.diff | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'data') diff --git a/data/apt/cfnetwork.diff b/data/apt/cfnetwork.diff index 84a545066..e90d06dde 100644 --- a/data/apt/cfnetwork.diff +++ b/data/apt/cfnetwork.diff @@ -1,6 +1,6 @@ diff -ru apt-0.6.46.4.1/methods/http.cc apt-0.6.46.4.1+iPhone/methods/http.cc --- apt-0.6.46.4.1/methods/http.cc 2006-12-04 14:37:36.000000000 +0000 -+++ apt-0.6.46.4.1+iPhone/methods/http.cc 2008-04-13 05:59:17.000000000 +0000 ++++ apt-0.6.46.4.1+iPhone/methods/http.cc 2008-04-21 18:19:27.000000000 +0000 @@ -43,6 +47,11 @@ // Internet stuff @@ -223,7 +223,7 @@ diff -ru apt-0.6.46.4.1/methods/http.cc apt-0.6.46.4.1+iPhone/methods/http.cc - /* If the server is sending back sizeless responses then fill in - the size now */ -+ if (sc == 302) { ++ if (sc == 301 || sc == 302) { + sr = CFHTTPMessageCopyHeaderFieldValue(hm, CFSTR("Location")); + if (sr == NULL) { + Fail(); @@ -452,7 +452,7 @@ diff -ru apt-0.6.46.4.1/methods/http.cc apt-0.6.46.4.1+iPhone/methods/http.cc diff -ru apt-0.6.46.4.1/methods/makefile apt-0.6.46.4.1+iPhone/methods/makefile --- apt-0.6.46.4.1/methods/makefile 2006-12-04 14:37:36.000000000 +0000 -+++ apt-0.6.46.4.1+iPhone/methods/makefile 2008-04-13 00:47:53.000000000 +0000 ++++ apt-0.6.46.4.1+iPhone/methods/makefile 2008-04-14 20:17:16.000000000 +0000 @@ -47,7 +47,7 @@ # The http method -- cgit v1.2.3