Removed Max-Age cookie field for now.
This commit is contained in:
commit
99a4e0c302
1 changed files with 3 additions and 3 deletions
|
@ -1,7 +1,7 @@
|
||||||
<?php
|
<?php
|
||||||
// HttpRequest.php
|
// HttpRequest.php
|
||||||
// Created: 2022-02-08
|
// Created: 2022-02-08
|
||||||
// Updated: 2023-01-01
|
// Updated: 2023-01-07
|
||||||
|
|
||||||
namespace Index\Http;
|
namespace Index\Http;
|
||||||
|
|
||||||
|
@ -44,8 +44,8 @@ class HttpRequest extends HttpMessage {
|
||||||
return $this->path;
|
return $this->path;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getParamString(): string {
|
public function getParamString(bool $spacesAsPlus = false): string {
|
||||||
return http_build_query($this->params);
|
return http_build_query($this->params, '', '&', $spacesAsPlus ? PHP_QUERY_RFC1738 : PHP_QUERY_RFC3986);
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getParams(): array {
|
public function getParams(): array {
|
||||||
|
|
Loading…
Reference in a new issue