Prevent duplicate http header writes on streaming results.

cbugg: close bug-533