Commit Graph

3114 Commits

Author SHA1 Message Date
3d25515253 Release v2.0.1 v2.0.1 2022-05-27 11:48:57 +02:00
dc4999ddb6 * .gitlab-ci.yml: Move static wget2.exe to https://gnuwget.gitlab.io/wget2/wget2.exe 2022-05-27 11:38:22 +02:00
607136d548 * libwget/ssl_openssl.c (wget_ssl_open): Silence sc_useless_cpp_parens 2022-05-27 10:52:56 +02:00
27d606baf3 * libwget/iri.c (wget_iri_get_escaped_resource): Fix escaping space in query part
Examples and explanation in https://gitlab.com/gnuwget/wget/-/issues/10
2022-05-21 19:58:22 +02:00
643416f0e6 * .gitlab-ci.yml: mkdir public for static MinGW build 2022-05-08 19:55:11 +02:00
3310c10f74 * .gitlab-ci.yml: mkdir /public for static MinGW build 2022-05-08 19:37:01 +02:00
99cf242be2 * .gitlab-ci.yml: unset CC for MinGW static 2022-05-08 19:27:45 +02:00
4c50e0a110 i* .gitlab-ci.yml: Fix MinGW static build 2022-05-08 19:20:19 +02:00
de2104985e * .gitlab-ci.yml: Build static wget2.exe
The static exe should be available from
  https://gnuwget.gitlab.io/wget2/wget2-latest.exe
2022-05-08 15:51:01 +02:00
e34a3aa7c2 * src/wget.c (downloader_thread): Only set EXIT_STATUS_NETWORK on error for the try 2022-04-03 15:09:52 +02:00
7292244bec Add tests for --level
* tests/Makefile.am: Add test-level.c.
* tests/test-level.c: New file with tests for --level.
2022-04-03 14:52:36 +02:00
4a24762773 * tests/test-robots.c (main): Add a test for --no-robots 2022-04-03 13:16:55 +02:00
90d4f2ab57 * src/wget.c (add_urls): Amend info message 2022-04-03 13:16:27 +02:00
564d06bf4a * libwget/ssl_openssl.c (wget_ssl_open): Check for X509_CHECK_FLAG_NEVER_CHECK_SUBJECT (introduced in OpenSSL >= 1.1) 2022-03-11 20:08:58 +01:00
810e6465f6 Disable building manylibs by default
* .gitlab-ci.yml: Add --enable-manylibs to Full tests.
* configure.ac: --disable-manylibs is default.
2022-03-05 16:54:53 +01:00
395d540c27 * libwget/Makefile.am: Use libwget_libadd for *_LIBADD 2022-03-05 16:36:19 +01:00
486a0fbc88 * libwget/Makefile.am: Add INTL_MACOSX_LIBS to LIBADDs
Copyright-paperwork-exempt: Yes
2022-03-05 16:24:56 +01:00
0f554ef216 * */Makefile.am: Reorder link libraries (libgnu.la first) 2022-03-05 16:23:15 +01:00
89a83274da * src/options.c (print_help): Fix warning about missing case in switch 2022-03-01 13:27:52 +01:00
6adfefd308 * gnulib: Update 2022-03-01 13:15:42 +01:00
a9105f20c0 * src/options.c (print_help): Remove unreachable code 2022-02-27 19:44:12 +01:00
374d5d6183 * gitlab-ci.yml: Switch off git CA verification on FreeBSD globally 2022-02-27 18:19:25 +01:00
f61d7ec4d5 * gitlab-ci.yml: Switch off git CA verification on FreeBSD 2022-02-27 18:16:30 +01:00
64234eeef2 * libwget/http.c (wget_http_get_response_cb): Extend error messages with URL 2022-02-27 18:12:03 +01:00
b3fb1a3758 * cfg.mk: Skip sc_indent in 'make syntax-check' 2022-02-25 19:17:39 +01:00
2370be9273 * libwget/ssl_openssl.c (print_openssl_time): Use _() around error message 2022-02-25 19:17:10 +01:00
215facd4e2 Fix storage files in help text and in the docs
* docs/wget2.md: Fix ~/.wget-* to $XDG_DATA_HOME/wget/.wget-*
* src/options.c: Likewise.
2022-02-25 19:02:44 +01:00
336a22b1ac Fix copyright statements 2022-02-25 17:56:49 +01:00
3dc7f71098 Update copyright year 2022-02-25 17:46:43 +01:00
95c1f90edd * libwget/dns.c (wget_dns_cache_ip): Put '' around host/ip in error message 2022-02-20 19:14:46 +01:00
be4e2deaf9 Fix -k/--convert-links fragment
* src/wget.c (convert_link_file_only): Use wget_debug_printf instead of wget_info_printf,
  (convert_links): Add fragment.
* tests/test-k.c: Add fragment to test.
2022-02-20 19:05:46 +01:00
72f48aaa1f Properly escape URLs with -k/--convert-links
* src/wget.c (convert_link_whole): Use wget_iri_escape_path() instead of wget_buffer_strcat().
* tests/test-k.c (main): Add test of URL with query part including escaped characters.
2022-02-20 18:32:54 +01:00
954c3c19b6 * tests/test--*.c: Rename to test-*.c 2022-02-19 18:44:50 +01:00
20a6046fca Fix issue reported by scan-build
* include/wget/wget.h: /// -> //.
* libwget/netrc.c (unescape_password): Check wget_malloc() return against NULL.
* libwget/xml.c (wget_xml_parse_file): Likewise.
2022-02-19 14:35:40 +01:00
f9491cae37 * unit-tests/test.c (test_cookies): Fix false reporting of a PSL error 2022-02-19 13:44:17 +01:00
66d24458d0 Fix --directory-prefix with --content-disposition
* src/blacklist.c (get_local_filename): Remove static from definition.
* src/wget_blacklist.h (get_local_filename): Add declaration.
* src/wget.c (process_response): Use get_local_filename() to process
  the filename from Content-Disposition,
  (get_header): Likewise.
* tests/Makefile.am: Add new test file test-directory-prefix.c.
* tests/test-directory-prefix.c: New test file.
2022-02-18 19:57:14 +01:00
97afd2138d Allow spaces and \ escaping in passwords in .netrc
This is Wget1.x compatible.

* docs/wget2.md: Document the new behavior.
* libwget/netrc.c (wget_netrc_db_load): Amended the code to allow \ and "".
* unit-tests/test.c (test_netrc): Add tests.
2022-02-13 19:27:42 +01:00
9d37263609 * src/wget.c (prepare_file): Use wget_strdup instead of wget_asprintf 2022-01-23 19:00:45 +01:00
1c84c4127b Fix obscure Windows (Win11) recv() issue (returns 0 without a reason)
* libwget/http.c (wget_http_get_response_cb): Continue HTTP/2 loop if recv()
  return 0.

Fixes https://github.com/rockdaboot/wget2/issues/256
2022-01-21 17:57:46 +01:00
849b54eeed * libwget/http.c (wget_http_get_response_cb): Amend debug output [skip ci] 2022-01-19 18:41:33 +01:00
8908e8f3b0 * contrib/mingw.static: Add build instructions for zlib-ng [skip ci] 2022-01-19 17:51:11 +01:00
c1bcb3d356 * contrib/mingw.static: Add build instructions for nghttp2 [skip ci] 2022-01-19 14:25:12 +01:00
7e11dfc3b0 * unit-tests/test.c (test_cookies): Check wget_cookie_db_load_psl() return value 2022-01-18 11:15:44 +01:00
08d1e96681 * src/options.c: Unlink output document when --unlink is given 2022-01-09 13:55:08 +01:00
d1ff6143f7 WolfSSL: Fix buffer overflow in SHA512 hashing
* libwget/hashfile.c (wget_hash_deinit, WOLFSSL): Include wolfssl/options.h.
2022-01-09 13:44:18 +01:00
7846a3d6c5 Fix deflate decompression when server omits the header
* libwget/decompressor.c (gzip_decompress): Retry decompression without header
2022-01-07 12:25:07 +01:00
104ea7431d * libwget/Makefile.am: Remove -no-whole-archive (due to the previous commit reversion) 2022-01-03 14:27:56 +01:00
89b45801f8 Revert "build: Use -Wl,--no-whole-archive"
This reverts commit acfa50d31c.
2022-01-03 14:21:45 +01:00
54bbe8e12d OpenSSL: OCSP: Be more realistic with update times 2022-01-02 14:26:25 +01:00
55de5534d9 * gnulib: Update due to busybox sed issue 2022-01-02 14:16:33 +01:00