c52e093bca
* src/job.c (job_validate_file): Fix --chunk-size for partially existing files
2017-04-13 17:02:40 +02:00
a0095d69ec
* libwget/html_url.c: Remove empty _css_parse_encoding()
2017-04-13 12:35:56 +02:00
1a574dcff0
* libwget/html_url.c: Remove some trailing whitespaces
2017-04-13 10:14:28 +02:00
31762cc633
Added support for html css style tag and attribute
...
* include/wget/wget.h: Add 'size_t len' to wget_css_parse_buffer()
and wget_css_get_urls()
* libwget/css.c (wget_css_parse_buffer): Use yy_scan_bytes() instead
of yy_scan_string()
* libwget/css_url.c: Add param to wget_css_get_urls() and
wget_css_parse_buffer()
* libwget/html_url.c: Add _css_parse_encoding() and _css_parse_uri(),
(_html_get_url): Deal with 'style' attribute,
(wget_html_free_urls_inline): Free url if needed
* libwget/test_linking.c: Add param to wget_css_parse_buffer()
* libwget/xml.c (parseXML): Add check for 'style'
* src/wget.c (css_parse): Add param 'size_t len'
* tests/Makefile.am: Add new test test-parse-html-css
* tests/test-parse-html-css.c: New file
2017-04-13 10:06:25 +02:00
dd2f4b50e9
Follow link:rel=preload with --page-requisites
...
* libwget/html_url.c (_html_get_url): Add rel=preload to be followed
* tests/test--page-requisites.c: Add a test href for rel=preload
2017-04-12 16:34:11 +02:00
a83becf4de
Fix --page-requisites <link> handling
...
* libwget/html_url.c: Add helper ctx->uri_index,
fix "icon shortcut" -> "shortcut icon",
fix check for "stylesheet"
* src/wget.c (html_parse): Check for !html_url->link_inline
* tests/test--page-requisites.c: Add 'not.txt' URL and reference
2017-04-12 16:14:39 +02:00
f5ccda5e38
Add special HTML to test--page-requisites.c
...
* tests/test--page-requisites.c: Add HTML code
With --page-requisites shortcut icons should not be followed.
Link with rel="stylesheet" should be followed.
2017-04-12 15:28:16 +02:00
bc4010fa39
Fix progress bar when off_t is 32 bits
...
* include/wget/wget.h: Amend prototype of wget_human_readable()
* libwget/bar.c: Use uint64_t instead of off_t
* libwget/utils.c (wget_human_readable): Change 3rd param off_t -> uint64_t
2017-04-12 11:48:15 +02:00
39d2a7584c
* libwget/init.c (wget_global_init): Init console
2017-04-12 11:34:49 +02:00
6bfd00b75c
* libwget/console.c (_reset_color): Do not reset color if stdout is not a TTY
2017-04-12 11:34:26 +02:00
cd21cbcd74
* tests/test-cut-dirs.c: Add more tests
2017-04-12 11:12:59 +02:00
8dc0d8531f
* src/wget.c (_prepare_file): Case-insensitive check for WIN32 NUL file
2017-04-12 11:03:38 +02:00
320ac40487
Fix --cut-dirs
...
* src/wget.c (get_local_filename): Add / after host part
* tests/Makefile.am: Add new test 'test-cut-dirs'
* tests/test-cut-dirs.c: New file
2017-04-12 10:17:46 +02:00
863370b87c
* Makefile.am: Add empty line to ChangeLog after date/author
2017-04-11 15:29:21 +02:00
f00a7574f6
* tests/libtest.c (_ftp_server_thread): Remove redundant check for WIN64
2017-04-11 14:40:47 +02:00
dd8c2fd9f4
* libwget/pipe.c: Remove redundant check for WIN64
2017-04-11 14:40:25 +02:00
10d1ac6aa4
Fix handling of -O /dev/null
...
* src/wget.c (_prepare_file): Return -2 if filename is /dev/null,
(http_receive_response): Check outfd for >= 0
Reported-by: Gisle Vanem
2017-04-11 12:18:03 +02:00
bae35d7790
Prevent wget2rc from being read during tests
...
* src/options.c: Treat parse_filename{,s} as string vectors and clear
them with a no-* command line option
* tests/libtest.c: Pass --no-config to all the tests by default
2017-04-11 11:54:50 +02:00
262d267c8e
* libwget/css_tokenizer.lex: Use clang #pragma for -Wshorten-64-to-32
2017-04-11 11:52:19 +02:00
18b5e9c45b
Fix --chunk-size / -O combination
...
* src/wget.c (process_head_response): Set metalink->name if
config.output_document is set.
Reported-by: Gisle Vanem
Fixes : #177
2017-04-11 11:26:21 +02:00
c319ba4b7c
Generate prettier ChangeLog from git log
...
* Makefile.am (gen_changelog): Use git log directly without
additional gnulib tools.
2017-04-10 15:50:03 +02:00
e71692d994
* src/wget.c (_prepare_file): Skip saving to '/dev/null' resp. 'NUL' on WIN32
2017-04-10 13:06:25 +02:00
9888f5c7b5
Merge pull request #176 from rootkea/tsan
...
* configure.ac: Fix test for asan and tsan being mutually exclusive
2017-04-09 21:56:47 +02:00
9f5290ff44
* configure.ac: Add "-fPIC -pie" for Thread sanitizer
2017-04-10 00:30:01 +05:30
3c54d527b6
* configure.ac: Fix test for asan and tsan being mutually exclusive
...
* configure.ac: Fix test for asan and tsan being mutually exclusive
* configure.ac: Make `./configure --help` document about msan and tsan being mutually exclusive
2017-04-10 00:09:04 +05:30
970077708a
Merge pull request #175 from rootkea/configure
...
* configure.ac: Check for msan and tsan being mutually exclusive
2017-04-09 19:08:34 +02:00
28655594aa
Merge pull request #174 from rootkea/valgrind
...
* configure.ac: Check for Valgrind and Sanitizers being mutually exclusive
2017-04-09 19:04:39 +02:00
3b5ef10e79
* configure.ac: Check for msan and tsan being mutually exclusive
2017-04-09 22:19:30 +05:30
720adc3c62
* configure.ac: Check for Valgrind and Sanitizers being mutually exclusive
...
* configure.ac: Check for valgrind and Sanitizers being mutually exclusive
* configure.ac: Make ./configure --help document above check
* configure.ac: Make ./configure --help document the existing check of asan and msan
2017-04-09 22:04:51 +05:30
ade8c82f27
* docs/libwget.doxy: Fix path to libwget header file for documentation
2017-04-08 15:44:47 +02:00
5db7c0f5cb
* libwget/css_tokenizer.lex: Suppress clang warnings
2017-04-07 20:37:07 +02:00
7e236be92d
* examples/check_url_types.c: Fix clang warning
2017-04-07 20:36:36 +02:00
624bea8e9d
* libwget/net.c: Support TCP Fast Open on OSX via connectx()
2017-04-07 20:11:32 +02:00
b94bcc5f5d
* configure.ac: Don't complain when exhaustive switch has default case
2017-04-07 16:36:16 +02:00
4af4c56b6e
*libwget/http.c: Remove unused attribute from used parameters
2017-04-07 16:26:22 +02:00
c626202cfa
*libwget/net.c: Silence clang's -Wconditional-uninitialized
2017-04-07 16:22:13 +02:00
58f68d4ee9
src/options.c (parse_command_line): Silence compiler warning for precision loss
2017-04-07 16:22:13 +02:00
55de2bba97
* src/log.c: Silence -Wunused-parameter when not on Windows
2017-04-07 16:22:13 +02:00
ab36970ed4
* configure.ac: Prevent some useless clang warnings
2017-04-07 16:22:13 +02:00
44bd257de8
* libwget/http.c (wget_http_open): Disable push for HTTP/2 connections
2017-04-07 15:43:20 +02:00
1f46ff236f
Revert "* libwget/net.c: Silence -Wundef if TCP_FASTOPEN is undefined"
...
This reverts commit 2c17f6fc42 .
2017-04-07 14:28:05 +02:00
4ad6d68305
Fix libraries to use libtool variables
...
* examples/Makefile.am: Use $(LTLIBICONV) $(LTLIBINTL) $(LTLIBTHREAD)
* src/Makefile.am: Likewise
* tests/Makefile.am: Likewise
2017-04-06 12:25:07 +02:00
3c2ad8154f
* libwget/utils.c (wget_get_screen_size): Fix return value
2017-04-06 12:24:38 +02:00
2ff1ea0fe8
gnulib: Update
2017-04-06 12:02:33 +02:00
919d299077
* src/wget.c: Silence -Wbad-function-cast in WIN32 futimens()
2017-04-06 10:59:20 +02:00
38e53f0da4
* libwget/ssl_gnutls.c: Silence -Wunused-parameter if GnuTLS isn't available
2017-04-06 10:57:58 +02:00
db05090e61
* libwget/utils.c: Silence -Wunused-parameter if HAVE_IOCTL is undefined
2017-04-06 10:57:10 +02:00
2c17f6fc42
* libwget/net.c: Silence -Wundef if TCP_FASTOPEN is undefined
2017-04-06 10:56:02 +02:00
bc824ea518
* libwget/hashfile.c: Silence -Wundef from gnulib's hash code
2017-04-06 10:54:50 +02:00
0f87534c33
* libwget/cookie.c: Silence -Wunused-parameter if without LIBPSL
2017-04-06 10:54:05 +02:00