From ec8d4000819ebcbc74e224a4e0ec4bd41f427429 Mon Sep 17 00:00:00 2001 From: HoneyryderChuck Date: Thu, 15 Oct 2020 13:26:12 +0100 Subject: [PATCH] skip default assignment, so that typing works better at that level --- lib/httpx/options.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/httpx/options.rb b/lib/httpx/options.rb index c1d3ce34..aad8d42d 100644 --- a/lib/httpx/options.rb +++ b/lib/httpx/options.rb @@ -76,6 +76,8 @@ module HTTPX defaults.merge!(options) defaults.each do |(k, v)| + next if v.nil? + __send__(:"#{k}=", v) end end