Made message signing in Cryptography use SHA512 as the message content for... #1
2 changed files with 4 additions and 4 deletions
|
@ -73,12 +73,12 @@
|
|||
return $this->requestBody;
|
||||
}
|
||||
|
||||
public function getClientName(): string
|
||||
public function getClientName(): ?string
|
||||
{
|
||||
return $this->clientName;
|
||||
}
|
||||
|
||||
public function getClientVersion(): string
|
||||
public function getClientVersion(): ?string
|
||||
{
|
||||
return $this->clientVersion;
|
||||
}
|
||||
|
|
|
@ -81,14 +81,14 @@
|
|||
private static function handleInitiateSession(ClientRequest $clientRequest): void
|
||||
{
|
||||
|
||||
if(!isset($requestHeaders[StandardHeaders::CLIENT_NAME->value]))
|
||||
if(!$clientRequest->getClientName())
|
||||
{
|
||||
http_response_code(400);
|
||||
print('Missing required header: ' . StandardHeaders::CLIENT_NAME->value);
|
||||
return;
|
||||
}
|
||||
|
||||
if(!isset($requestHeaders[StandardHeaders::CLIENT_VERSION->value]))
|
||||
if(!$clientRequest->getClientVersion())
|
||||
{
|
||||
http_response_code(400);
|
||||
print('Missing required header: ' . StandardHeaders::CLIENT_VERSION->value);
|
||||
|
|
Loading…
Add table
Reference in a new issue