Skip to content

Commit

Permalink
Check static file without querystring
Browse files Browse the repository at this point in the history
  • Loading branch information
g105b committed Jan 5, 2015
1 parent ed4377f commit d71c472
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/Cli/Gateway.php
Expand Up @@ -22,6 +22,8 @@ class Gateway {
* @return mixed An instance of the $phpgt class
*/
public static function serve($uri, $phpgt = "\Gt\Core\Start") {
$uri = strtok($uri, "?");

if(self::isStaticFileRequest($uri)) {
$filePath = self::getAbsoluteFilePath($uri);
self::serveStaticFile($filePath);
Expand Down

0 comments on commit d71c472

Please sign in to comment.