Sync with upstream
Coverity fixes
Merge pull request #1980 from cmouse/update-yahttp-20141223

Sync with upstream