Skip to main content

normalizeHash

@webda/core


Function: normalizeHash()

normalizeHash<T>(hash): T

Defined in: packages/core/src/services/binary.service.ts:1163

Normalise a hexadecimal hash or challenge to lower case, so the same content is never named by two keys

Type Parameters​

T​

T

Parameters​

hash​

T

the hash as sent by a client

Returns​

T

the lower-case hash, or the value unchanged when it is not a string