Skip to content

Commit abaefa9

Browse files
committed
test case update
1 parent d668b00 commit abaefa9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

fakeapp_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,14 @@ func (c Hotels) Index() Result {
3939
return c.RenderText("Hello, World!")
4040
}
4141

42-
func (c Static) Serve(prefix, filepath string) Result {
42+
func (c Static) Serve(prefix, path string) Result {
4343
var basePath, dirName string
4444

4545
if !filepath.IsAbs(dirName) {
4646
basePath = BasePath
4747
}
4848

49-
fname := filepath.Join(basePath, prefix, filepath)
49+
fname := filepath.Join(basePath, prefix, path)
5050
file, err := os.Open(fname)
5151
if os.IsNotExist(err) {
5252
return c.NotFound("")

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy