summaryrefslogtreecommitdiff
path: root/net/echoping/files/patch-http.c
blob: e5960167d865ed2d183116b30724b8ff11a5a465 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- http.c.orig	2015-06-03 13:06:16 UTC
+++ http.c
@@ -113,6 +113,8 @@ read_from_server(CHANNEL fs, short ssl, 
             /* 204 No Content is not an error, message body is empty by definition, see RFC 2616 */
             if (reply_code == 204)
                 return 0;       /* zero bytes is correct */
+             if (accept_redirects && reply_code >= 300 && reply_code < 400)
+		return 0;
 
             if (!  (reply_code >= 200 && reply_code < 300) &&
                 ! ((reply_code >= 300 && reply_code < 400) && accept_redirects))