http: fix non-string header value concatenation
Since headers are stored in an empty literal object ({}
) instead of an object created with Object.create(null)
, care must be taken with property names inherited from Object. Currently there are
only functions inherited, so we can safely check for existing strings instead.