summaryrefslogtreecommitdiff
path: root/utilities.go
diff options
context:
space:
mode:
authorHorus32015-05-17 03:32:03 +0200
committerHorus32015-05-17 03:32:03 +0200
commitcc207536d1f8618385d9807906818180cd596777 (patch)
tree0093a6b12994c3d75b2be0abb6a43dae1eb9bf98 /utilities.go
parentfeb97c32649dfaa7c98283423125283a53d5dd09 (diff)
downloadfreemail-cc207536d1f8618385d9807906818180cd596777.tar.gz
Improve tests. Fix (major) typos. Include Piwik and it tracks the language.
Diffstat (limited to 'utilities.go')
-rw-r--r--utilities.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/utilities.go b/utilities.go
index 602d4fe..f3b0ece 100644
--- a/utilities.go
+++ b/utilities.go
@@ -38,7 +38,7 @@ func GetLanguage(r *http.Request) string {
} else {
if c.Value != "" {
if c.Value == "de" {
- return "_" + c.Value
+ return c.Value
} else {
return ""
}
@@ -50,7 +50,7 @@ func GetLanguage(r *http.Request) string {
lang := r.Header["Accept-Language"][0]
l := strings.TrimSpace(strings.Split(lang, ",")[0])
if l == "de" {
- return "_" + l
+ return l
}
return ""
}