Skip to content

Commit 76552e3

Browse files
committed
strip trailing whitespace from server.php
1 parent 223ccb3 commit 76552e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

server.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,12 @@ function routeRequest()
1919
case '/comments.json':
2020
if($_SERVER['REQUEST_METHOD'] === 'POST') {
2121
$commentsDecoded = json_decode($comments, true);
22-
$commentsDecoded[] = ['author' => $_POST['author'],
22+
$commentsDecoded[] = ['author' => $_POST['author'],
2323
'text' => $_POST['text']];
2424

2525
$comments = json_encode($commentsDecoded);
2626
file_put_contents('_comments.json', $comments);
27-
}
27+
}
2828
header('Content-Type: application/json');
2929
echo $comments;
3030
break;

0 commit comments

Comments
 (0)