[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[taler-taldir] branch master updated: fix
From: |
gnunet |
Subject: |
[taler-taldir] branch master updated: fix |
Date: |
Tue, 12 Jul 2022 19:16:26 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository taldir.
The following commit(s) were added to refs/heads/master by this push:
new 13fad70 fix
13fad70 is described below
commit 13fad702b41879527e7c9a28c5e2b82dedbbbc3d
Author: Martin Schanzenbach <schanzen@gnunet.org>
AuthorDate: Tue Jul 12 19:16:23 2022 +0200
fix
---
pkg/rest/taldir.go | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/pkg/rest/taldir.go b/pkg/rest/taldir.go
index 42d7195..4de7c23 100644
--- a/pkg/rest/taldir.go
+++ b/pkg/rest/taldir.go
@@ -654,7 +654,7 @@ func (t *Taldir) termsResponse(w http.ResponseWriter, r
*http.Request) {
for _, lang := range acceptLangs {
extensions, _ := mime.ExtensionsByType(fileType)
for _, ext := range extensions {
- docFile := fmt.Sprintf("%s/%s/0.%s", termsLocation, lang.String, ext)
+ docFile := fmt.Sprintf("%s/%s/0%s", termsLocation, lang.String, ext)
log.Printf("Trying %s\n", docFile)
fileBytes, err := ioutil.ReadFile(docFile)
if nil == err {
@@ -699,7 +699,7 @@ func (t *Taldir) privacyResponse(w http.ResponseWriter, r
*http.Request) {
for _, lang := range acceptLangs {
extensions, _ := mime.ExtensionsByType(fileType)
for _, ext := range extensions {
- docFile := fmt.Sprintf("%s/%s/0.%s", termsLocation, lang.String, ext)
+ docFile := fmt.Sprintf("%s/%s/0%s", termsLocation, lang.String, ext)
log.Printf("Trying %s\n", docFile)
fileBytes, err := ioutil.ReadFile(docFile)
if nil == err {
@@ -716,7 +716,7 @@ func (t *Taldir) privacyResponse(w http.ResponseWriter, r
*http.Request) {
defaultLanguage :=
t.Cfg.Section("taldir").Key("default_doc_lang").MustString("en")
extensions, _ := mime.ExtensionsByType(fileType)
for _, ext := range extensions {
- docFile := fmt.Sprintf("%s/%s/0.%s", termsLocation, defaultLanguage, ext)
+ docFile := fmt.Sprintf("%s/%s/0%s", termsLocation, defaultLanguage, ext)
fileBytes, err := ioutil.ReadFile(docFile)
if nil == err {
w.Header().Set("Content-Type", fileType)
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.