Fix bug in memory-based HTTP data content initialization with input stream, add test (port from branch 3).

- Fixes #1170
Fix inspector warnings