mirror of
https://github.com/shlinkio/shlink.git
synced 2026-03-12 01:54:41 +08:00
Removed duplicated error handling for 404 errors
This commit is contained in:
@@ -70,7 +70,7 @@ class RedirectAction implements MiddlewareInterface
|
||||
// If provided shortCode does not belong to a valid long URL, dispatch next middleware, which will trigger
|
||||
// a not-found error
|
||||
if (! isset($longUrl)) {
|
||||
return $out($request, $response);
|
||||
return $out($request, $response->withStatus(404), 'Not found');
|
||||
}
|
||||
|
||||
// Track visit to this shortcode
|
||||
|
||||
Reference in New Issue
Block a user