lib/Util/RequestOptions.php
public function discardNonPersistentHeaders()
    {
        foreach ($this->headers as $k => $v) {
            if (!in_array($k, self::$HEADERS_TO_PERSIST)) {
                unset($this->headers[$k]);
            }
        }
    }
public function discardNonPersistentHeaders()
    {
        foreach ($this->headers as $k => $v) {
            if (!in_array($k, self::$HEADERS_TO_PERSIST)) {
                unset($this->headers[$k]);
            }
        }
    }
public function discardNonPersistentHeaders ( ) { foreach ( $ this -> headers as $ k => $ v ) { if ( ! in_array ( $ k , self :: $ HEADERS_TO_PERSIST ) ) { unset ( $ this -> headers [ $ k ] ) ; } } }
Discards all headers that we don't want to persist across requests.
Discards all headers that we don t want to persist across requests .