all-in-one-event-calendar/lib/http/encoder.php

25 lines
554 B
PHP
Raw Normal View History

2017-03-16 16:59:53 +01:00
<?php
/**
* Calendar Http_Encoder wrapper.
*
* @author Time.ly Network Inc.
* @since 2.2
*
* @package AI1EC
* @subpackage AI1EC.Lib
*/
class Ai1ec_HTTP_Encoder extends HTTP_Encoder {
2017-11-09 17:36:04 +01:00
/**
* Overrides parent function and removed Content-Length header to avoid
* some problems if our JavaScript is somehow prepended by 3rd party code.
*
* @return void Method does not return.
*/
public function sendHeaders() {
unset( $this->_headers['Content-Length'] );
parent::sendHeaders();
}
2017-03-16 16:59:53 +01:00
}