protected function configureHTTPMethod($method) {
        switch($method){
            case self::HTTP_GET:
                $this->removeHeader('Content-Type');
                break;
            case self::HTTP_POST:
            case self::HTTP_PUT:
                $this->addHeader("Content-Type", "multipart/form-data");
        }
        return parent::configureHTTPMethod($method);
    }
protected function configureHTTPMethod($method) {
        switch($method){
            case self::HTTP_GET:
                $this->removeHeader('Content-Type');
                break;
            case self::HTTP_POST:
            case self::HTTP_PUT:
                $this->addHeader("Content-Type", "multipart/form-data");
        }
        return parent::configureHTTPMethod($method);
    }
protected function configureHTTPMethod ( $ method ) { switch ( $ method ) { case self :: HTTP_GET : $ this -> removeHeader ( 'Content-Type' ) ; break ; case self :: HTTP_POST : case self :: HTTP_PUT : $ this -> addHeader ( "Content-Type" , "multipart/form-data" ) ; } return parent :: configureHTTPMethod ( $ method ) ; }
Configure Headers for File Requests based on HTTP Method
@inheritdoc
Configure Headers for File Requests based on HTTP Method