Skip to content

Commit

Permalink
Add missing conditional when a kit is small enough to be read in the …
Browse files Browse the repository at this point in the history
…first fread call. In this case equals the whole response body and should be assigned to .
  • Loading branch information
Bram Stein committed Dec 11, 2013
1 parent 137ef06 commit c1be82e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions includes/typekit-client.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ private function make_request($socket, $request) {

if (strlen($body) < $size) {
$data = $body . fread($socket, $size - strlen($body));
} else {
$data = $body;
}

if ($this->debug) {
Expand Down

0 comments on commit c1be82e

Please sign in to comment.