Skip to content

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
Yurunsoft committed Sep 30, 2019
2 parents 4185e3e + 96c775f commit 2e7298f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/server/Http/server.php
Expand Up @@ -47,13 +47,13 @@
header('Location:/?a=info');
exit;
case 'download1':
if('nb' === ($_POST['yurunhttp'] ?? null) && 'POST' === $_SERVER['REQUEST_METHOD'])
if('nb' === (isset($_POST['yurunhttp']) ? $_POST['yurunhttp'] : null) && 'POST' === $_SERVER['REQUEST_METHOD'])
{
echo 'YurunHttp Hello World';
}
break;
case 'download2':
if('nb' === ($_POST['yurunhttp'] ?? null) && 'POST' === $_SERVER['REQUEST_METHOD'])
if('nb' === (isset($_POST['yurunhttp']) ? $_POST['yurunhttp'] : null) && 'POST' === $_SERVER['REQUEST_METHOD'])
{
echo '<h1>YurunHttp Hello World</h1>';
}
Expand Down

0 comments on commit 2e7298f

Please sign in to comment.