This is not a golang question per-se, but a question about HTTP headers. My suggestion is to read up on HTTP headers and their requirements here:
https://www.w3.org/Protocols/rfc2616/rfc2616-sec4.html And concerning inserting an actual carriage return followed by a line feed, you can see how to do that here (hint, know your ASCII characters): https://golang.org/pkg/fmt/ On Wed, May 29, 2019 at 8:44 AM Tong Sun <suntong...@gmail.com> wrote: > A question related to Go as "\n" in Go does not mean CR LF -- > > Is http header requires CR LF as line end? > Perl can handle "\n" automatically for CR LF, but I saw a Perl program > ends each http header specifically with CR LF. > > Shall I care about doing the same thing for my Go http handling? > > > -- > You received this message because you are subscribed to the Google Groups > "golang-nuts" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to golang-nuts+unsubscr...@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/golang-nuts/e3ea401d-d40a-4535-8d8c-bec9c539a1c9%40googlegroups.com > <https://groups.google.com/d/msgid/golang-nuts/e3ea401d-d40a-4535-8d8c-bec9c539a1c9%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Philip A. Chapman Java Software Development Enterprise, Web, and Desktop -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/golang-nuts/CABEejsjcycM0j4%2Bfj91M_LNKR89kYQsOGJHhPjy3Ymzz7CrG4g%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.