mirror of
https://github.com/openziti/zrok.git
synced 2025-06-20 01:37:52 +02:00
display the requested path in the test endpoint ui
This commit is contained in:
parent
0b9d61b961
commit
3ed31e60e0
@ -388,6 +388,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="container">
|
<div id="container">
|
||||||
<div id="info">
|
<div id="info">
|
||||||
|
<h1>{{ .RequestedPath }}</h1>
|
||||||
|
|
||||||
<h2>{{ .Now }}</h2>
|
<h2>{{ .Now }}</h2>
|
||||||
|
|
||||||
<h3>At This Endpoint:</h3>
|
<h3>At This Endpoint:</h3>
|
||||||
|
@ -61,6 +61,7 @@ func (cmd *testEndpointCommand) serveIndex(w http.ResponseWriter, r *http.Reques
|
|||||||
}
|
}
|
||||||
|
|
||||||
type endpointData struct {
|
type endpointData struct {
|
||||||
|
RequestedPath string
|
||||||
Now time.Time
|
Now time.Time
|
||||||
RemoteAddr string
|
RemoteAddr string
|
||||||
Host string
|
Host string
|
||||||
@ -72,6 +73,7 @@ type endpointData struct {
|
|||||||
|
|
||||||
func newEndpointData(r *http.Request) *endpointData {
|
func newEndpointData(r *http.Request) *endpointData {
|
||||||
ed := &endpointData{
|
ed := &endpointData{
|
||||||
|
RequestedPath: r.RequestURI,
|
||||||
Now: time.Now(),
|
Now: time.Now(),
|
||||||
HostHeader: r.Host,
|
HostHeader: r.Host,
|
||||||
Headers: r.Header,
|
Headers: r.Header,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user