Fixed issue with thread http request.