Skip to content

Commit 583ca09

Browse files
committed
Reuse dataType
1 parent aad9c8f commit 583ca09

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

dnscrypt-proxy/local-doh.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ func (handler localDoHHandler) ServeHTTP(writer http.ResponseWriter, request *ht
4242
writer.WriteHeader(500)
4343
return
4444
}
45-
writer.Header().Set("Content-Type", "application/dns-message")
45+
writer.Header().Set("Content-Type", dataType)
4646
writer.WriteHeader(200)
4747
writer.Write(response)
4848
}

0 commit comments

Comments
 (0)