Skip to content

Commit

Permalink
fixed typo
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateo committed Oct 26, 2022
1 parent bd5c8c2 commit c2ce568
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/Cookie.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@

class Cookie
{
public const HTTP_ONLY = '#HttpOnly_.';

public array $cookie = [
'domain' => '',
'includeSubDomains' => 'FALSE',
Expand Down Expand Up @@ -82,8 +84,8 @@ public function get(): string
{
$cookie = '';

if ($this->cookie['httpOnly'] === 'TRUE') {
$this->cookie['name'] = '#HttpOnly_' . $this->cookie['name'];
if ($this->cookie['httpOnly'] == 'TRUE') {
$this->cookie['domain'] = self::HTTP_ONLY . $this->cookie['name'];
}
foreach ($this->cookie as $value) {
$cookie .= $value . "\t";
Expand Down

0 comments on commit c2ce568

Please sign in to comment.