Skip to content

Commit

Permalink
Fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
Seldaek committed Jan 16, 2024
1 parent 53b65d9 commit 9a96a36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Controller/PackageController.php
Original file line number Diff line number Diff line change
Expand Up @@ -1723,7 +1723,7 @@ private function getStatsInterval(string $average): string

private function blockAbusers(Request $req): ?JsonResponse
{
if (str_contains($req->headers->get('User-Agent'), 'Bytespider; [email protected]')) {
if (str_contains((string) $req->headers->get('User-Agent'), 'Bytespider; [email protected]')) {
return new JsonResponse("Please respect noindex/nofollow meta tags, and email [email protected] to get unblocked once this is resolved", 429, ['Retry-After' => 31536000]);
}

Expand Down

0 comments on commit 9a96a36

Please sign in to comment.