# [PATCH] gitweb: Fix typo in run() subroutine

1 messages from 2010-08-02 to 2010-08-02. Participants: Jakub Narebski.
Thread: https://gitlist.dev/t/24607

## Jakub Narebski, 2010-08-02 20:21

Subject: [PATCH] gitweb: Fix typo in run() subroutine
Message-ID: <20100802202047.20307.73672.stgit@localhost.localdomain>
URL: https://gitlist.dev/e/20100802202047.20307.73672.stgit%40localhost.localdomain

```
Run $post_dispatch_hook->() not $pre_dispatch_hook->() after each
request.

Signed-off-by: Jakub Narebski <jnareb@gmail.com>
---
Probably nobody is using pre/post dispatch (request) hooks anyway...
by default they are no-op (empty).

 gitweb/gitweb.perl |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/gitweb/gitweb.perl b/gitweb/gitweb.perl
index e0e9532..8b02767 100755
--- a/gitweb/gitweb.perl
+++ b/gitweb/gitweb.perl
@@ -1125,7 +1125,7 @@ sub run {
 
 		run_request();
 
-		$pre_dispatch_hook->()
+		$post_dispatch_hook->()
 			if $post_dispatch_hook;
 
 		last REQUEST if ($is_last_request->());

```
