Reuse dataType

This commit is contained in:
Frank Denis 2019-11-28 23:33:34 +01:00
parent aad9c8f19c
commit 583ca09946
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}