Skip to content

Commit 0612257

Browse files
authored
Merge pull request #326 from dusanbrankov/fix-go-string-literal
go: fix unescaped newline in generated string literal
2 parents 7cc0578 + 610970e commit 0612257

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js/helpers/go.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ export default (form, output) => {
2121
?
2222
' w.Header().Add("Strict-Transport-Security", "max-age='+output.hstsMaxAge+'")\n'
2323
: '')+
24-
' w.Write([]byte("This server is running the Mozilla '+form.config+' configuration.\n"))\n'+
24+
' w.Write([]byte("This server is running the Mozilla '+form.config+' configuration.\\n"))\n'+
2525
' })\n';
2626

2727
if (form.hsts) {

0 commit comments

Comments
 (0)