lib/classes/Swift/Message.php
protected function restoreHeaders()
    {
        foreach ($this->savedMessage['headers'] as $name => $savedValue) {
            $headers = $this->getHeaders()->getAll($name);

            foreach ($headers as $key => $value) {
                if (!isset($savedValue[$key])) {
                    $this->getHeaders()->remove($name, $key);
                }
            }
        }
    }
protected function restoreHeaders()
    {
        foreach ($this->savedMessage['headers'] as $name => $savedValue) {
            $headers = $this->getHeaders()->getAll($name);

            foreach ($headers as $key => $value) {
                if (!isset($savedValue[$key])) {
                    $this->getHeaders()->remove($name, $key);
                }
            }
        }
    }
protected function restoreHeaders ( ) { foreach ( $ this -> savedMessage [ 'headers' ] as $ name => $ savedValue ) { $ headers = $ this -> getHeaders ( ) -> getAll ( $ name ) ; foreach ( $ headers as $ key => $ value ) { if ( ! isset ( $ savedValue [ $ key ] ) ) { $ this -> getHeaders ( ) -> remove ( $ name , $ key ) ; } } } }
Remove or restore altered headers.
Remove or restore altered headers .