inventory
This commit is contained in:
1 parent
a7b886c4c5
commit
1ec449c2bd
1 file changed
+4
-1
@@ -22,7 +22,10 @@ func BadgeHandler(reader StockReader) http.HandlerFunc {
|
|||||||
|
|
||||||
locationID := LocationID(r.URL.Query().Get("location_id"))
|
locationID := LocationID(r.URL.Query().Get("location_id"))
|
||||||
if locationID == "" {
|
if locationID == "" {
|
||||||
locationID = "default"
|
locationID = LocationID(r.URL.Query().Get("country"))
|
||||||
|
}
|
||||||
|
if locationID == "" {
|
||||||
|
locationID = "se"
|
||||||
}
|
}
|
||||||
|
|
||||||
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
w.Header().Set("Content-Type", "text/html; charset=utf-8")
|
||||||
|
|||||||
Reference in new issue
Block a user