wget-dev
[Top][All Lists]
Advanced

[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: 
https://gitlab.com/gnuwget/wget2/merge_requests/457

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 
wget_http_get_response_cb`)
* 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
None.

### Approver's checklist:

* [ ] The author has submitted the FSF Copyright Assignment and is listed in 
AUTHORS
* [ ] There is a test suite reasonably covering new functionality or 
modifications
* [ ] 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: 
https://gitlab.com/gnuwget/wget2/merge_requests/457
You're receiving this email because of your account on gitlab.com.




reply via email to

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