mirror of
https://github.com/DNSCrypt/dnscrypt-proxy.git
synced 2025-03-04 02:14:40 +01: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
Reference in a new issue