summaryrefslogtreecommitdiffstats
path: root/web/attachments/266460-check_http.head.patch
diff options
context:
space:
mode:
Diffstat (limited to 'web/attachments/266460-check_http.head.patch')
-rw-r--r--web/attachments/266460-check_http.head.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/web/attachments/266460-check_http.head.patch b/web/attachments/266460-check_http.head.patch
new file mode 100644
index 0000000..0b6539c
--- /dev/null
+++ b/web/attachments/266460-check_http.head.patch
@@ -0,0 +1,30 @@
195a96
2> int use_head = FALSE;
3179c208,209
4< INVERT_REGEX = CHAR_MAX + 1
5---
6> INVERT_REGEX = CHAR_MAX + 1,
7> USE_HEAD = CHAR_MAX + 2
8209a240
9> {"head", no_argument, 0, USE_HEAD},
10341a373,375
11> case USE_HEAD:
12> use_head = 1;
13> break;
14455a490,497
15>
16> if (use_head == 1 )
17> if ( strcmp(http_method, "POST") == 0) {
18> usage4 (_("Using POST data and HEAD requests is not supported"));
19> } else {
20> no_body = TRUE;
21> http_method = strdup("HEAD");
22> }
231292a1335,1337
24> printf (" %s\n", "--head");
25> printf (" %s\n", _("make a HEAD request instead of GET"));
26> printf (" %s\n", _("this implies -N\n"));
271341c1386
28< printf (" [-k string] [-S] [-C <age>] [-T <content-type>]\n");
29---
30> printf (" [-k string] [-S] [-C <age>] [-T <content-type>] [--head]\n");