Skip to content

Conversation

@CarlSchwan
Copy link
Member

This is not always needed and slow down the upload

Signed-off-by: Carl Schwan [email protected]
(cherry picked from commit 1b426ed)

This is not always needed and slow down the upload

Signed-off-by: Carl Schwan <[email protected]>
(cherry picked from commit 1b426ed)
@CarlSchwan CarlSchwan requested review from a team, come-nc, icewind1991 and juliusknorr and removed request for a team June 8, 2022 11:40
if ($this->request->getHeader('X-HASH') !== '') {
$hash = $this->request->getHeader('X-HASH');
if ($hash === 'all' || $hash === 'md5') {
$data = HashWrapper::wrap($data, 'md5', function ($hash) {

Check notice

Code scanning / Psalm

MissingClosureParamType

Parameter $hash has no provided type
}

if ($hash === 'all' || $hash === 'sha1') {
$data = HashWrapper::wrap($data, 'sha1', function ($hash) {

Check notice

Code scanning / Psalm

MissingClosureParamType

Parameter $hash has no provided type
}

if ($hash === 'all' || $hash === 'sha256') {
$data = HashWrapper::wrap($data, 'sha256', function ($hash) {

Check notice

Code scanning / Psalm

MissingClosureParamType

Parameter $hash has no provided type
Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@CarlSchwan CarlSchwan merged commit 5b9ec05 into stable24 Jun 10, 2022
@CarlSchwan CarlSchwan deleted the backport/stable24/upload-speed branch June 10, 2022 09:24
@blizzz blizzz mentioned this pull request Jun 10, 2022
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants