summaryrefslogtreecommitdiff
path: root/ext/http/http_next.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/http/http_next.rs')
-rw-r--r--ext/http/http_next.rs8
1 files changed, 4 insertions, 4 deletions
diff --git a/ext/http/http_next.rs b/ext/http/http_next.rs
index 900a956f4..93634ae3e 100644
--- a/ext/http/http_next.rs
+++ b/ext/http/http_next.rs
@@ -73,13 +73,13 @@ type Request = hyper1::Request<Incoming>;
type Response = hyper1::Response<ResponseBytes>;
static USE_WRITEV: Lazy<bool> = Lazy::new(|| {
- let disable_writev = std::env::var("DENO_HYPER_USE_WRITEV").ok();
+ let enable = std::env::var("DENO_USE_WRITEV").ok();
- if let Some(val) = disable_writev {
- return val != "0";
+ if let Some(val) = enable {
+ return !val.is_empty();
}
- true
+ false
});
/// All HTTP/2 connections start with this byte string.