http: check err return from http.NewRequest

from #1023