Skip to content

Commit

Permalink
Fix HPackNghttp2 decoding
Browse files Browse the repository at this point in the history
  • Loading branch information
kelunik committed Aug 15, 2023
1 parent a7b1e01 commit 5835a14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Internal/HPackNghttp2.php
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ public function decode(string $input, int $maxSize): ?array

$bufferLength = \strlen($input);
$buffer = self::createBufferFromString($input);
if ($buffer !== null) {
if ($buffer === null) {
return [];
}

Expand Down

0 comments on commit 5835a14

Please sign in to comment.