using flush() here is pointless as we render the layout into a memory buffer and actually transmit the data later
Merge pull request #10293 from owncloud/fix-headers-being-sent

using flush() here is pointless as we render the layout into a memory bu...