Skip to content

Commit

Permalink
fix: Usage of header function
Browse files Browse the repository at this point in the history
The header function of PHP have only an argument to define the header
name and value. This argument need to be a string.

More info: https://www.php.net/header

Signed-off-by: Vitor Mattos <vitor@php.rio>
  • Loading branch information
vitormattos committed May 8, 2024
1 parent 686cb0c commit c633d48
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/server/multirequest.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?php

header("content-type", "text-plain");
header('content-type: text/plain');
sleep(1 + rand(0, 3));
echo $_REQUEST["param"];

0 comments on commit c633d48

Please sign in to comment.