We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
According to https://caddyserver.com/docs/modules/http.handlers.templates
.Req.URL should return "Scheme", "Port", etc...
.Req.URL
I have a file index.html
index.html
<!DOCTYPE html> <html lang="en"> <head> <title>Main</title> </head> <body> <h3>URL="{{.Req.URL}}"</h3> <h3>host="{{.Req.URL.Host}}"</h3> <h3>scheme="{{.Req.URL.Scheme}}"</h3> <h3>port="{{.Req.URL.Port}}"</h3> </body> </html>
produces:
<!DOCTYPE html> <html lang="en"> <head> <title>Main</title> </head> <body> <h3>URL="/"</h3> <h3>host=""</h3> <h3>scheme=""</h3> <h3>port=""</h3> </body> </html>
The URL typed in the browser is "https://my.super-duper-site.com/" (i.e. its not localhost :) )
I believe this is a bug
The text was updated successfully, but these errors were encountered:
No branches or pull requests
According to https://caddyserver.com/docs/modules/http.handlers.templates
.Req.URL
should return "Scheme", "Port", etc...I have a file
index.html
produces:
The URL typed in the browser is "https://my.super-duper-site.com/" (i.e. its not localhost :) )
I believe this is a bug
The text was updated successfully, but these errors were encountered: