set content type on stream to avoid connection problems