Skip to content
This repository has been archived by the owner on Nov 14, 2023. It is now read-only.

fix(body-digest): fix the digest may be duplicated when it is at index 0 #23

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/BodyDigest.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ public function __construct($hashAlgorithm = null)

public function putDigestInHeaderList($headerList)
{
if (!array_search('digest', $headerList->names)) {
if (false === array_search('digest', $headerList->names)) {
$headerList->names[] = 'digest';
}

Expand Down