Ensure that proper headers are being sent