mirror of
https://github.com/getformwork/formwork.git
synced 2025-02-21 08:02:36 +01:00
Add $replace
argument to Header::send()
This commit is contained in:
parent
f9e5a264e3
commit
947c6294cd
@ -76,12 +76,12 @@ class Header
|
||||
}
|
||||
}
|
||||
|
||||
public static function send($fieldName, $fieldValue)
|
||||
public static function send($fieldName, $fieldValue, $replace = true)
|
||||
{
|
||||
if (headers_sent()) {
|
||||
throw new RuntimeException('HTTP headers already sent');
|
||||
}
|
||||
header($fieldName . ': ' . trim($fieldValue));
|
||||
header($fieldName . ': ' . trim($fieldValue), $replace);
|
||||
}
|
||||
|
||||
public static function contentType($mimeType)
|
||||
|
Loading…
x
Reference in New Issue
Block a user