rastrillo / fiesta Public
| 1 | package site |
| 2 | |
| 3 | // HeadersWith is a _headers file of one path setting one header, put |
| 4 | // through the check Build's own rules pass, so a test can hand it a |
| 5 | // header Build never writes. |
| 6 | func HeadersWith(path, name, value string) ([]byte, error) { |
| 7 | return headersFile([]headerGroup{{paths: []string{path}, headers: []header{{name, value}}}}) |
| 8 | } |
| 9 |