mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-25 09:34:11 +00:00
24255cb18b
echping does not exist at SourceForge anymore. Use distfile from Github and deal with differences: - new distfile has no configure scripts but configure.ac and requires generation of configure, but modern autoreconf cannot handle its configure.ac files properly so they need some polishing with pre-configure target to be useful; - broad usage of HTTP Strict Transport Security requires new patch fixing echoping's HTTP "accept_redirects" mode, so this echoping does not fail in this mode on HTTP redirects; - pet portlint; - bump PORTREVISION.
12 lines
547 B
C
12 lines
547 B
C
--- 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))
|