[Pkg-ocaml-maint-commits] [approx] 01/16: follow redirects for HEAD requests (closes: #695279)
Eric Cooper
ecc at cmu.edu
Mon Dec 9 15:44:02 UTC 2013
This is an automated email from the git hooks/post-receive script.
ecc-guest pushed a commit to branch upstream
in repository approx.
commit c414856874df0bc428c4923c540735dc212d8bdf
Author: Eric Cooper <ecc at cmu.edu>
Date: Fri Mar 8 12:40:06 2013 -0500
follow redirects for HEAD requests (closes: #695279)
---
approx.ml | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/approx.ml b/approx.ml
index e2b626c..4bb1268 100644
--- a/approx.ml
+++ b/approx.ml
@@ -1,5 +1,5 @@
(* approx: proxy server for Debian archive files
- Copyright (C) 2012 Eric C. Cooper <ecc at cmu.edu>
+ Copyright (C) 2013 Eric C. Cooper <ecc at cmu.edu>
Released under the GNU General Public License *)
open Printf
@@ -332,7 +332,7 @@ let download_http resp url name ims cgi =
let rec loop redirects =
resp.status <- 0;
if is_head then
- Url.head url header_callback
+ Url.head resp.location header_callback
else
Url.download resp.location ~headers ~header_callback body_callback;
match resp.status with
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ocaml-maint/packages/approx.git
More information about the Pkg-ocaml-maint-commits
mailing list