[Pkg-nagios-changes] [pkg-nagios-plugins] 158/413: readd server_port
Jan Wagner
waja at moszumanska.debian.org
Tue Nov 26 23:13:18 UTC 2013
This is an automated email from the git hooks/post-receive script.
waja pushed a commit to branch master
in repository pkg-nagios-plugins.
commit 7d50ab917767dc681c80357c6e88077cad975ac0
Author: Jan Wagner <waja at cyconet.org>
Date: Mon Sep 22 12:46:42 2008 +0000
readd server_port
---
debian/changelog | 3 ++-
debian/patches/41_check_http_fix_http_header.dpatch | 2 +-
2 files changed, 3 insertions(+), 2 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index def5477..edcb2ff 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,7 @@
nagios-plugins (1.4.12-4) UNRELEASED; urgency=low
- * NOT RELEASED YET
+ * add server_port back to 41_check_http_fix_http_header.dpatch,
+ patch was incomplete
-- Jan Wagner <waja at cyconet.org> Sun, 24 Aug 2008 07:40:12 +0200
diff --git a/debian/patches/41_check_http_fix_http_header.dpatch b/debian/patches/41_check_http_fix_http_header.dpatch
index 5cacd50..971976a 100755
--- a/debian/patches/41_check_http_fix_http_header.dpatch
+++ b/debian/patches/41_check_http_fix_http_header.dpatch
@@ -17,7 +17,7 @@ diff -urNad nagios-plugins-1.4.12~/plugins/check_http.c nagios-plugins-1.4.12/pl
+ * Useragent. This fixes an issue with getting 301 responses from servers
+ * with virtual hosts */
+ if (host_name)
-+ asprintf (&buf, "%s %s HTTP/1.1\r\nHost: %s\r\n%s\r\n", http_method, server_url, host_name, user_agent);
++ asprintf (&buf, "%s %s HTTP/1.1\r\nHost: %s:%d\r\n%s\r\n", http_method, server_url, host_name, server_port, user_agent);
+ else
+ asprintf (&buf, "%s %s HTTP/1.0\r\n%s\r\n", http_method, server_url, user_agent);
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-nagios/pkg-nagios-plugins.git
More information about the Pkg-nagios-changes
mailing list