mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-04-04 05:37:38 +03:00
Reuse dataType
This commit is contained in:
parent
aad9c8f19c
commit
583ca09946
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ func (handler localDoHHandler) ServeHTTP(writer http.ResponseWriter, request *ht
|
|||
writer.WriteHeader(500)
|
||||
return
|
||||
}
|
||||
writer.Header().Set("Content-Type", "application/dns-message")
|
||||
writer.Header().Set("Content-Type", dataType)
|
||||
writer.WriteHeader(200)
|
||||
writer.Write(response)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue