1
0
mirror of https://github.com/actix/actix-extras.git synced 2025-06-25 09:59:21 +02:00

add actix-web version in header

This commit is contained in:
François Mockers
2018-06-04 08:15:04 +02:00
parent 86be54df71
commit ca3fb11f8b
2 changed files with 14 additions and 3 deletions

View File

@ -615,7 +615,10 @@ impl ClientRequestBuilder {
true
};
if !contains {
self.header(header::USER_AGENT, "Actix-web");
self.header(
header::USER_AGENT,
concat!("Actix-web/", env!("CARGO_PKG_VERSION")),
);
}
}