Skip to content

Commit 9a17c16

Browse files
committed
Temporarily disable the requirement of a User-Agent header
cargo-vendor, which is used by Rust's CI, does not send a UA header, so Rust's CI broke when we deployed this change. They're going to try and fix that on their end in the next few days, but in the mean time we need to disable this.
1 parent 869bca0 commit 9a17c16

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/middleware/mod.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,10 @@ pub fn build_middleware(app: Arc<App>, endpoints: R404) -> MiddlewareBuilder {
8686
let ips = ip_list.split(',').map(String::from).collect();
8787
m.around(block_ips::BlockIps::new(ips));
8888
}
89-
m.around(require_user_agent::RequireUserAgent::default());
89+
// Note: Temporarily disabled because cargo-vendor doesn't include a
90+
// User-Agent header and Rust's CI broke. If this is still commented out
91+
// by Nov 7, 2018 we need to ping some folks
92+
// m.around(require_user_agent::RequireUserAgent::default());
9093

9194
if env != Env::Test {
9295
m.around(log_request::LogRequests::default());

0 commit comments

Comments
 (0)