[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Bug-wget] Body skipped for non-GET
From: |
Darshit Shah |
Subject: |
Re: [Bug-wget] Body skipped for non-GET |
Date: |
Wed, 26 Jun 2013 13:45:51 +0530 |
> I also noted that with --method=head, --spider is automatically enabled
> (main.c:1405), which
> produces some funny messages:
>
> Yes, that is a quirk. We enable spider when opt.method is set to HEAD.
This was done so as to reuse the old code that handles HEAD requests
through --spider.
I was planning on adding this in the docs that, for the moment,
--method=HEAD is simply an alias to --spider.
The correct way to fix this would be to separate the logic for handling
HEAD requests from that for --spider functionality and then reuse the code.
--
Thanking You,
Darshit Shah