Skip to content

Commit

Permalink
Fixed TypeError in IPWhitelistingMiddleware
Browse files Browse the repository at this point in the history
The mistake:

Return value of LKDevelopment\HorizonPrometheusExporter\Http\Middleware\IPWhitelistingMiddleware::handle() must be an instance of Illuminate\Http\Response, instance of Illuminate\Http\RedirectResponse returned
  • Loading branch information
Rene-Roscher authored and LKaemmerling committed Mar 24, 2021
1 parent 29d526e commit b661887
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Middleware/IPWhitelistingMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

class IPWhitelistingMiddleware
{
public function handle(Request $request, \Closure $next): Response
public function handle(Request $request, \Closure $next)
{
if (!empty(config('horizon-exporter.ip_whitelist'))) {
$clientIp = $request->ip();
Expand Down

0 comments on commit b661887

Please sign in to comment.