nodyn/nodyn — pull request #57 by malaporte (2014-07-03 08:59:58+00:00)
Title: A few fix plus missing 'constants' core module

Made two fixes:

http.request ignores hostname specified through "hostname" option. Now hostname has priority over host, as per Node documentation.

bufferToString fails when encoding passed is undefined. On real NodeJS this works fine, and some popular NPM modules (request) were breaking in part because of this.

Also added the 'constants' module from Node's sources.