(js string)
| 1591 | } |
| 1592 | |
| 1593 | func (h *handler) writeJavascript(js string) { |
| 1594 | h.writeWithMimetypeStatus(http.StatusOK, []byte(js), "application/javascript") |
| 1595 | } |
| 1596 | |
| 1597 | // writeTextStatus writes the given bytes as a plaintext response. |
| 1598 | // If status is nonzero, the header will be written with that status. |
no test coverage detected