possible fix to make the http handler handle Streams returned from portal