Skip to content

Commit

Permalink
More fix
Browse files Browse the repository at this point in the history
  • Loading branch information
tiziano88 committed Jun 20, 2022
1 parent ffb747e commit 7874ef4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ func main() {
func handlerRoot(w http.ResponseWriter, r *http.Request) {
hostSegments := hostSegments(r.Host)
log.Infof(r.Context(), "host segments: %#v", hostSegments)
if len(hostSegments) == 2 {
if len(hostSegments) == 2 && hostSegments[1] == wwwSegment {
handlerWWW.ServeHTTP(w, r)
} else {
handlerBrowse.ServeHTTP(w, r)
Expand Down

0 comments on commit 7874ef4

Please sign in to comment.