From 7885d0f3dc255cd7900ee1d398366636c48bcda1 Mon Sep 17 00:00:00 2001 From: Wilmer van der Gaast Date: Fri, 16 Jul 2010 00:23:04 +0100 Subject: Don't be a dumbass and stop following redirects if there doesn't seem to be an end. --- lib/http_client.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/http_client.h') diff --git a/lib/http_client.h b/lib/http_client.h index d73894a4..726c97a6 100644 --- a/lib/http_client.h +++ b/lib/http_client.h @@ -60,6 +60,8 @@ struct http_request int body_size; /* The number of bytes in reply_body. */ int finished; /* Set to non-0 if the request was completed successfully. */ + int redir_ttl; /* You can set it to 0 if you don't want + http_client to follow them. */ http_input_function func; gpointer data; -- cgit v1.2.3