mirror of
https://github.com/golang/go
synced 2024-11-19 15:54:46 -07:00
net/rpc: use html/template to render html
Found using the vet check in CL 106370045. This is a second attempt at CL 101670044, which omitted the deps_test change. This adds dependencies to net/rpc: encoding encoding/base64 encoding/json html unicode/utf16 The obvious correctness and security warrants the additional dependencies. LGTM=rsc R=r, minux, rsc, adg CC=golang-codereviews https://golang.org/cl/110890043
This commit is contained in:
parent
475d266cec
commit
76ce843afe
@ -327,7 +327,7 @@ var pkgDeps = map[string][]string{
|
|||||||
"net/http/httptest": {"L4", "NET", "OS", "crypto/tls", "flag", "net/http"},
|
"net/http/httptest": {"L4", "NET", "OS", "crypto/tls", "flag", "net/http"},
|
||||||
"net/http/httputil": {"L4", "NET", "OS", "net/http"},
|
"net/http/httputil": {"L4", "NET", "OS", "net/http"},
|
||||||
"net/http/pprof": {"L4", "OS", "html/template", "net/http", "runtime/pprof"},
|
"net/http/pprof": {"L4", "OS", "html/template", "net/http", "runtime/pprof"},
|
||||||
"net/rpc": {"L4", "NET", "encoding/gob", "net/http", "text/template"},
|
"net/rpc": {"L4", "NET", "encoding/gob", "html/template", "net/http"},
|
||||||
"net/rpc/jsonrpc": {"L4", "NET", "encoding/json", "net/rpc"},
|
"net/rpc/jsonrpc": {"L4", "NET", "encoding/json", "net/rpc"},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -11,9 +11,9 @@ package rpc
|
|||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"html/template"
|
||||||
"net/http"
|
"net/http"
|
||||||
"sort"
|
"sort"
|
||||||
"text/template"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const debugText = `<html>
|
const debugText = `<html>
|
||||||
|
Loading…
Reference in New Issue
Block a user