avoid abcex overlap on defaultLang
All checks were successful
continuous-integration/drone Build is passing
All checks were successful
continuous-integration/drone Build is passing
This commit is contained in:
parent
8a8d7dc819
commit
0da0597644
1 changed files with 3 additions and 3 deletions
6
main.go
6
main.go
|
@ -136,7 +136,7 @@ func process(_ context.Context, w gemini.ResponseWriter, r *gemini.Request) {
|
||||||
log.Fatal(err)
|
log.Fatal(err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
db.Inc("page_counter." + defaultLang)
|
db.Inc("page_counter._" + defaultLang)
|
||||||
|
|
||||||
conn, err := grpc.Dial(
|
conn, err := grpc.Dial(
|
||||||
fileSrvHost+":"+fileSrvPort,
|
fileSrvHost+":"+fileSrvPort,
|
||||||
|
@ -240,10 +240,10 @@ func renderIndex(w gemini.ResponseWriter, client TreeManagerClient) {
|
||||||
if !found {
|
if !found {
|
||||||
}
|
}
|
||||||
|
|
||||||
pageCounter, found := db.Get("page_counter." + defaultLang)
|
pageCounter, found := db.Get("page_counter._" + defaultLang)
|
||||||
if !found {
|
if !found {
|
||||||
pageCounter = "1"
|
pageCounter = "1"
|
||||||
db.Save("page_counter."+defaultLang, "1")
|
db.Save("page_counter._"+defaultLang, "1")
|
||||||
}
|
}
|
||||||
|
|
||||||
w.SetMediaType("text/gemini")
|
w.SetMediaType("text/gemini")
|
||||||
|
|
Loading…
Reference in a new issue