]> git.lizzy.rs Git - plan9front.git/commit
rc-httpd(8): avoid duplicate log output in dir-index handler
authorAlex Musolino <alex@musolino.id.au>
Wed, 5 Jun 2019 06:34:50 +0000 (16:04 +0930)
committerAlex Musolino <alex@musolino.id.au>
Wed, 5 Jun 2019 06:34:50 +0000 (16:04 +0930)
commit78c7cd0c010c1c90dbc3358c2710bddaed379ce9
treedbac107ab058254982ffa9fda06c733752faddfa
parent341b64b5bd0af48ec4bb7b11a54c953c52b22d03
rc-httpd(8): avoid duplicate log output in dir-index handler

Delay calling do_log until just before emitting the response.  This avoids
calling do_log before potentially handing control to the static-index
handler, which also calls do_log.
rc/bin/rc-httpd/handlers/dir-index