Fix bug in memory-based HTTP data content initialization with input stream, add test.

- Fixes #1169
Fix inspector warnings