zola/components
Luke Hsiao 661bd9c0fa Set default user agent for external requests
Many servers will return errors (e.g. 400/403) to requests that do not
set a User-Agent header. This results in issues in both the link_checker
and load_data components. With the link_checker these are false positive
dead links. In load_data, remote data fails to be fetched. To mitigate
this issue, this sets a default User-Agent of

    $CARGO_PKG_NAME/$CARGO_PKG_VERSION

Note that the root cause of this regression from zola v0.9.0 is that
reqwest 0.10 changed their default behavior and no longer sets a
User-Agent by default:

    https://github.com/seanmonstar/reqwest/pull/751

Fixes #950.
2020-02-17 17:40:06 -08:00
..
config Multiple slugification strategies (#929) 2020-02-05 09:13:14 +01:00
errors Update image to 0.23 2020-02-10 20:48:52 +01:00
front_matter Format code using cargo fmt (#896) 2020-02-02 17:48:43 -08:00
imageproc Update image to 0.23 2020-02-10 20:48:52 +01:00
library Multiple slugification strategies (#929) 2020-02-05 09:13:14 +01:00
link_checker Set default user agent for external requests 2020-02-17 17:40:06 -08:00
rebuild Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
rendering One last deps update 2020-02-16 19:17:41 +01:00
search Use Rust 2018 edition (#885) 2020-02-02 17:48:43 -08:00
site Fix some theme extension 2020-02-10 23:09:22 +01:00
templates Set default user agent for external requests 2020-02-17 17:40:06 -08:00
utils Fix some theme extension 2020-02-10 23:09:22 +01:00