aboutsummaryrefslogtreecommitdiffstats
path: root/gopherproxy.go
diff options
context:
space:
mode:
Diffstat (limited to 'gopherproxy.go')
-rw-r--r--gopherproxy.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/gopherproxy.go b/gopherproxy.go
index 2a6358c..9a081dc 100644
--- a/gopherproxy.go
+++ b/gopherproxy.go
@@ -539,7 +539,7 @@ func FontHandler(woff2 bool, fontdata []byte) http.HandlerFunc {
539// specified by the request. The robots argument is a pointer to 539// specified by the request. The robots argument is a pointer to
540// a robotstxt.RobotsData struct for testing user agents against 540// a robotstxt.RobotsData struct for testing user agents against
541// a configurable robots.txt file. 541// a configurable robots.txt file.
542func ListenAndServe(bind, robotsfile string, robotsdebug bool, vipsconcurrency int) error { 542func ListenAndServe(bind, startpagefile string, robotsfile string, robotsdebug bool, vipsconcurrency int) error {
543 var ( 543 var (
544 tpl *template.Template 544 tpl *template.Template
545 robotsdata *robotstxt.RobotsData 545 robotsdata *robotstxt.RobotsData
@@ -600,7 +600,7 @@ func ListenAndServe(bind, robotsfile string, robotsdebug bool, vipsconcurrency i
600 favicondata = []byte{} 600 favicondata = []byte{}
601 } 601 }
602 602
603 startpagedata, err := ioutil.ReadFile("startpage.txt") 603 startpagedata, err := ioutil.ReadFile(startpagefile)
604 if err != nil { 604 if err != nil {
605 startpagedata = []byte{} 605 startpagedata = []byte{}
606 } 606 }