workaround to make it work with low-level http-kit/request function;