[request] - Add setting the CSRF request header on 'end' function instead of on 'send' function #305