Removed Max-Age cookie field for now.

This commit is contained in:
flash 2023-01-10 21:51:54 +00:00
commit 99a4e0c302

View file

@ -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 {