summaryrefslogtreecommitdiffstats
path: root/web/attachments/254104-check_http.c-head-patch
blob: 490a6a4cbf8ad9bb2f2e784394972daee7a96d5e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
75d74
< int use_head = FALSE;
176,177c175
<     INVERT_REGEX = CHAR_MAX + 1,
<     USE_HEAD     = CHAR_MAX + 2
---
>     INVERT_REGEX = CHAR_MAX + 1
208d205
<     {"head", no_argument, NULL, USE_HEAD},
376,378d372
<     case USE_HEAD:
<       use_head = 1;
<       break;
459,466d452
<   if ( use_head == 1 ) {
<     if ( strcmp(http_method, "POST") == 0 )
<       usage4 (_("Using POST data and HEAD requests is not supported"));
<     else 
<       no_body = TRUE;
<       http_method = strdup("HEAD");
<   }
< 
1320,1322d1305
<   printf (" %s\n", "--head");
<   printf ("    %s\n", _("make a HEAD request instead of GET"));
<   printf ("    %s\n", _("this implies -N\n"));
1398c1381
<   printf ("       [-k string] [-S] [-C <age>] [-T <content-type>] [--head]\n");
---
>   printf ("       [-k string] [-S] [-C <age>] [-T <content-type>]\n");