Skip to content

Commit

Permalink
all: imp naming, log changes
Browse files Browse the repository at this point in the history
  • Loading branch information
EugeneOne1 committed Mar 17, 2021
1 parent c87032f commit 3dabf02
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,15 @@ and this project adheres to

- Go 1.14 support.

### Fixed

- Unindicated content mode of mobile config ([#2835]).

[#2385]: https://github.com/AdguardTeam/AdGuardHome/issues/2385
[#2412]: https://github.com/AdguardTeam/AdGuardHome/issues/2412
[#2498]: https://github.com/AdguardTeam/AdGuardHome/issues/2498
[#2533]: https://github.com/AdguardTeam/AdGuardHome/issues/2533
[#2835]: https://github.com/AdguardTeam/AdGuardHome/issues/2835



Expand Down
8 changes: 4 additions & 4 deletions internal/home/mobileconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,13 +153,13 @@ func handleMobileConfig(w http.ResponseWriter, r *http.Request, dnsp string) {
w.Header().Set("Content-Type", "application/xml")

const (
dohContDispVal = `attachment; filename=doh.mobileconfig`
dotContDispVal = `attachment; filename=dot.mobileconfig`
dohContDisp = `attachment; filename=doh.mobileconfig`
dotContDisp = `attachment; filename=dot.mobileconfig`
)

contDisp := dohContDispVal
contDisp := dohContDisp
if dnsp == dnsProtoTLS {
contDisp = dotContDispVal
contDisp = dotContDisp
}

w.Header().Set("Content-Disposition", contDisp)
Expand Down

0 comments on commit 3dabf02

Please sign in to comment.