Commit Graph

10 Commits

Author SHA1 Message Date
Alexey Sheplyakov
24db85c5ab http: fixed Content-Length header validation
Content-Length is not necesserily the last header, more headers
can follow it.

Closes: #41072
2021-10-07 16:43:36 +04:00
Alexey Sheplyakov
736c89620f http_download_file: fixed download of files >= 2GB size
* Use `unsigned long` to store the file size
* Return an error if the file size can not be found
* Avoid loading files >= 4GB on 32-bit systems

Related: #40710
2021-09-17 17:26:33 +04:00
Evgeny Sinelnikov
111d828c45 network.c, url.c: disable keep-alive and close http socket after downloading
With default Connection: keep-alive and without closing read socket after
downloading stage2 propagator hangs until socket not closed on server side.
2019-09-03 17:30:52 +04:00
Evgeny Sinelnikov
95bfcf8542 replace HTTP request version to 1.1 2018-08-22 20:08:23 +04:00
Arseny Maslennikov
2440a17fbe Remove unnecessary whitespace from C program text 2018-05-09 15:21:26 +03:00
Gleb Fotengauer-Malinovskiy
c96ab958b2 Fix errors found by cppcheck
[disk.c:206]: (error) Resource leak: f
[modules.c:62]: (error) Memory leak: buffer
[modules.c:68]: (error) Common realloc mistake: 'buffer' nulled but not freed upon failure
[stage1.c:101]: (error) va_list 'args' was opened but not closed by va_end().
[url.c:297]: (error) Resource leak: dataSocket
2017-05-11 19:09:46 +03:00
Sergey Bolshakov
48d26b2d15 - cleaned up 2007-03-03 00:48:18 +03:00
Sergey Bolshakov
c5d9d80f43 - added ntfs support
- more env vars:
  + with disk, DEVICE holds partition name, i.e. hda2
  + PIGGYBACK set means install from iso image (disk & nfs)
- HTTP/1.0 from now
2005-03-02 17:48:28 +00:00
Sergey Bolshakov
67363c8441 ftp method fixed 2005-01-24 18:12:06 +00:00
Anton Kachalov
46438969c6 Initial revision 2004-01-20 18:32:43 +00:00