http: check err return from http.NewRequest
Merge pull request #1044 from unihorn/119

http: check err return from http.NewRequest