Re: Server-Sent Events
- Posted by CraigWelch May 08, 2017
- 3529 views
You're absolutely right.
I've been using "\n\n" with the "Content-Type" header for years. The earliest sample from Rob Craig had that. In the example above, the "Cache-Control" now works with "\r\n" but does not work with "\n\n" (as I had at first tried). However "\n\n" still works with the "Content-Type" header. However, for the sake of good practice (as per the StackOverflow article you pointed me to), it shall be "\r\n" for all my CGI from now on.
Many thanks,
Craig