Skip to content

Commit f92be8f

Browse files
Update RobotsMiddleware.php
1 parent dfc6fd1 commit f92be8f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/RobotsMiddleware.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function handle(Request $request, Closure $next)
3232

3333
protected function responseWithRobots(string $contents)
3434
{
35-
$this->response->header('x-robots-tag', $contents);
35+
$this->response->headers['x-robots-tag'] = $contents;
3636

3737
return $this->response;
3838
}

0 commit comments

Comments
 (0)