optimization as per comments in https://github.com/loladiro/WWWClient.jl/pull/10