Skip to content

Commit

Permalink
Fix HTTP status when request method is OPTIONS
Browse files Browse the repository at this point in the history
  • Loading branch information
nezamy authored Mar 13, 2019
1 parent ec747aa commit d9ef19d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion system/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -599,7 +599,7 @@ public function end() {
$this->callback($call, $this->req->args);
}
count($this->after) && $this->emit($this->after);
} else {
} else if($this->req->method != 'OPTIONS'){
http_response_code(404);
print('<h1>404 Not Found</h1>');
}
Expand Down

0 comments on commit d9ef19d

Please sign in to comment.