Re: Server-Sent Events

new topic     » goto parent     » topic index » view thread      » older message » newer message

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

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu