[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

wget2 | Add --ignore-length handling (!457)

From: Archit Pandey
Subject: wget2 | Add --ignore-length handling (!457)
Date: Sat, 02 Nov 2019 08:51:26 +0000

Archit Pandey created a merge request: 

Project:Branches: archit-p/wget2:add-ignore-length to gnuwget/wget2:master
Author:    Archit Pandey

Closes https://gitlab.com/gnuwget/wget2/issues/439

### Design
* Set an integer `response_ignorelength` in `wget_request` when --ignore-length 
is passed by the user.  
* While downloading the body, check for `response_ignorelength`
* If `response_ignorelength` is set, download until there is data. (method 3 in 
* When `response_ignorelength` is not set, and size of data downloaded is 
inconsistent with `Content-Length`, exit with WGET_EXIT_INCONSISTENT_LENGTH 
(this is used in the test-suite).

### Possible Flaws

### Approver's checklist:

* [ ] The author has submitted the FSF Copyright Assignment and is listed in 
* [ ] There is a test suite reasonably covering new functionality or 
* [ ] Function naming, parameters, return values, types, etc., are consistent 
with existing code
* [ ] This feature/change has adequate documentation added (if appropriate)
* [ ] No obvious mistakes / misspelling in the code

Reply to this email directly or view it on GitLab: 
You're receiving this email because of your account on gitlab.com.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]