Skip to content

Commit

Permalink
Make browserconfig.xml to be root-url accessible (Can be accessed thr…
Browse files Browse the repository at this point in the history
…ough /browserconfig.xml).
  • Loading branch information
NI committed Dec 8, 2019
1 parent 7acbc33 commit d3c569f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions application/controller/controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,14 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
r,
clientLogger)

case "/browserconfig.xml":
err = serveStaticCacheData(
"browserconfig.xml",
staticFileExt(".xml"),
w,
r,
clientLogger)

default:
if strings.HasPrefix(r.URL.Path, assetsURLPrefix) &&
strings.ToUpper(r.Method) == "GET" {
Expand Down

0 comments on commit d3c569f

Please sign in to comment.