HttpEpServer: Set content correctly depending on httpendpoint configuration

Change-Id: I55f20401af293571fe9f971125504a7612339e28