mirror of
https://github.com/m13253/dns-over-https.git
synced 2026-05-25 22:54:11 +00:00
Resolve (some) linter warnings
This commit is contained in:
+3
-3
@@ -21,7 +21,7 @@
|
||||
DEALINGS IN THE SOFTWARE.
|
||||
*/
|
||||
|
||||
package jsonDNS
|
||||
package jsondns
|
||||
|
||||
import (
|
||||
"encoding/json"
|
||||
@@ -38,11 +38,11 @@ type dnsError struct {
|
||||
|
||||
func FormatError(w http.ResponseWriter, comment string, errcode int) {
|
||||
w.Header().Set("Content-Type", "application/json; charset=UTF-8")
|
||||
errJson := dnsError{
|
||||
errJSON := dnsError{
|
||||
Status: dns.RcodeServerFailure,
|
||||
Comment: comment,
|
||||
}
|
||||
errStr, err := json.Marshal(errJson)
|
||||
errStr, err := json.Marshal(errJSON)
|
||||
if err != nil {
|
||||
log.Fatalln(err)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user