Skip to content

Commit

Permalink
Merge pull request #1 from XDAM/bugfix/remove-content-length-header
Browse files Browse the repository at this point in the history
Content-Length header may be sent in proxy CONNECT
  • Loading branch information
seth-xdam authored May 11, 2020
2 parents 103cd52 + 8136235 commit a770de3
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
* Getters for public parameters #204

### Removed
*
* Removed explicit content-length header - caused issues with proxy servers


## [0.9.0]
Expand Down
1 change: 0 additions & 1 deletion src/OpenIDConnectClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,6 @@ protected function fetchURL($url, $post_body = null, $headers = array()) {

// Add POST-specific headers
$headers[] = "Content-Type: {$content_type}";
$headers[] = 'Content-Length: ' . strlen($post_body);

}

Expand Down

0 comments on commit a770de3

Please sign in to comment.