Clean trailing whitespace from all files.
This commit is contained in:
parent
429b078dc7
commit
3e0cc81504
26 changed files with 688 additions and 688 deletions
|
@ -4,16 +4,16 @@ header( "Sample-Header: Hello World" );
|
|||
|
||||
$headers = array();
|
||||
|
||||
foreach( $_SERVER as $key => $value ) {
|
||||
|
||||
if ( substr( $key , 0 , 5 ) == "HTTP_" ) {
|
||||
|
||||
foreach( $_SERVER as $key => $value ) {
|
||||
|
||||
if ( substr( $key , 0 , 5 ) == "HTTP_" ) {
|
||||
|
||||
$key = str_replace( "_" , "-" , substr( $key , 5) );
|
||||
$headers[ $key ] = $value;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
foreach( explode( "_" , $_GET[ "keys" ] ) as $key ) {
|
||||
echo "$key: " . $headers[ strtoupper( $key ) ] . "\n";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue