Skip to content
New issue

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

Request Headers are not shown #66

Open
raymundfischer opened this issue Jul 27, 2019 · 1 comment
Open

Request Headers are not shown #66

raymundfischer opened this issue Jul 27, 2019 · 1 comment

Comments

@raymundfischer
Copy link

raymundfischer commented Jul 27, 2019

Request headers are shown as "None" or nothing (??) in the html output.
All Routes have at least one header.

Tried with latest version + the 'default' and the 'elegance' theme.

default theme:
{{ range $res.Headers }}

{{ .Name }}{{ .Value }} {{ end }}

elegance theme:

Headers
{{ if eq (len $req.Headers) 0 }}
{{ range $req.Headers }}
{{ .Name }}
{{ .Value }}
{{ end }}
{{ else }}
None
{{ end }}
@raymundfischer
Copy link
Author

{{ if eq (len $req.Headers) 1 }}

... fixes it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant