X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FHttpFunctions.php;h=a1d2e59e590652056ef54b2da3dce8ea91b3ff1e;hb=7569a6600eefc08a9fb5354e8743bb2fbb5ec0a4;hp=8dd652581f3176c8933ad6f6cbbd29024bdcbf94;hpb=571e63cd2c2bac9a033e1816f5ad8b6a14b4f42b;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/HttpFunctions.php b/includes/HttpFunctions.php index 8dd652581f..a1d2e59e59 100644 --- a/includes/HttpFunctions.php +++ b/includes/HttpFunctions.php @@ -800,7 +800,9 @@ class PhpHttpRequest extends MWHttpRequest { if ( $this->method == 'POST' ) { // Required for HTTP 1.0 POSTs $this->reqHeaders['Content-Length'] = strlen( $this->postData ); - $this->reqHeaders['Content-type'] = "application/x-www-form-urlencoded"; + if( !isset( $this->reqHeaders['Content-Type'] ) ) { + $this->reqHeaders['Content-Type'] = "application/x-www-form-urlencoded"; + } } $options = array();