Implemented server.OnSendingHeaders