Просмотр исходного кода

fix(minz): fix malformed HTTP header (#5699)

NaeiKinDus 2 лет назад
Родитель
Сommit
ed07055ace
2 измененных файлов с 2 добавлено и 1 удалено
  1. 1 0
      CREDITS.md
  2. 1 1
      lib/Minz/FrontController.php

+ 1 - 0
CREDITS.md

@@ -136,6 +136,7 @@ People are sorted by name so please keep this order.
 * [mincerafter42](https://github.com/mincerafter42): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:mincerafter42), [Web](https://mincerafter42.github.io)
 * [MSZ](https://github.com/mszkb): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:mszkb)
 * [Myuki](https://github.com/Myuki): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Myuki)
+* [NaeiKinDus](https://github.com/NaeiKinDus): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:NaeiKinDus)
 * [Nainor](https://github.com/Nainor): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:Nainor)
 * [nanhualyq](https://github.com/nanhualyq): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:nanhualyq)
 * [Natalie Stroud](https://github.com/natastro): [contributions](https://github.com/FreshRSS/FreshRSS/pulls?q=is:pr+author:natastro)

+ 1 - 1
lib/Minz/FrontController.php

@@ -81,7 +81,7 @@ class Minz_FrontController {
 	 * @return never
 	 */
 	public static function killApp(string $txt = '') {
-		header('HTTP 1.1 500 Internal Server Error', true, 500);
+		header('HTTP/1.1 500 Internal Server Error', true, 500);
 		if (function_exists('errorMessageInfo')) {
 			//If the application has defined a custom error message function
 			die(errorMessageInfo('Application problem', $txt));