diff options
author | Jay Freeman <saurik@saurik.com> | 2008-04-22 03:59:35 +0000 |
---|---|---|
committer | Jay Freeman <saurik@saurik.com> | 2008-04-22 03:59:35 +0000 |
commit | c9dec31ffc78db7edf5b123c3ed1bc7d5a1f19dc (patch) | |
tree | 4868dad0f8694476518f44677f90c3e53b7f426d /data/apt | |
parent | 1d2e5fce79d18d7e1b56f911767969ec1a89864c (diff) |
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
Diffstat (limited to 'data/apt')
-rw-r--r-- | data/apt/cfnetwork.diff | 6 |
1 files changed, 3 insertions, 3 deletions
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 |