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
|
||||
// HttpRequest.php
|
||||
// Created: 2022-02-08
|
||||
// Updated: 2023-01-01
|
||||
// Updated: 2023-01-07
|
||||
|
||||
namespace Index\Http;
|
||||
|
||||
|
@ -44,8 +44,8 @@ class HttpRequest extends HttpMessage {
|
|||
return $this->path;
|
||||
}
|
||||
|
||||
public function getParamString(): string {
|
||||
return http_build_query($this->params);
|
||||
public function getParamString(bool $spacesAsPlus = false): string {
|
||||
return http_build_query($this->params, '', '&', $spacesAsPlus ? PHP_QUERY_RFC1738 : PHP_QUERY_RFC3986);
|
||||
}
|
||||
|
||||
public function getParams(): array {
|
||||
|
|
Loading…
Reference in a new issue