(filename string)
| 196 | } |
| 197 | |
| 198 | func fallbackFilenameIfInvalid(filename string) string { |
| 199 | if filename == "" || filename == "." { |
| 200 | return "download" |
| 201 | } |
| 202 | |
| 203 | return filename |
| 204 | } |
| 205 | |
| 206 | // Attachment sets the HTTP response Content-Disposition header field to attachment. |
| 207 | func (r *DefaultRes) Attachment(filename ...string) { |
no outgoing calls
no test coverage detected