summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShulhan <ms@kilabit.info>2021-08-06 18:17:16 +0700
committerShulhan <ms@kilabit.info>2021-08-06 18:17:16 +0700
commit2e41c999ec08bbf01751614e4f93085e6656e6b4 (patch)
treef75c5d35f7688656cd41739552025a07a104287f
parentf7a4706b9172b23c07bdbb3d1146c8c05d212412 (diff)
downloadpakakeh.go-2e41c999ec08bbf01751614e4f93085e6656e6b4.tar.xz
lib/http: fix return value on getFSNode
On c8dd20254d, we check the request path by adding .html suffix but forgot to return node if its not nil.
-rw-r--r--lib/http/server.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/http/server.go b/lib/http/server.go
index 8536acb4..a97348e8 100644
--- a/lib/http/server.go
+++ b/lib/http/server.go
@@ -353,7 +353,7 @@ func (srv *Server) getFSNode(reqPath string) (node *memfs.Node) {
}
return nil
}
- return nil
+ return node
}
}