diracdeltas/FastestWebsiteEver

Save some bytes

Closed this issue · 2 comments

mnot commented

hdrbytes = sprintf(send_buffer, "HTTP/1.1 200 OK\r\nContent-Length: %d\r\ncontent-encoding: deflate\r\n\r\n", numbytes);

  • Clients should accept just \n for line termination, so you can shave off 4 \rs
  • The reason-phrase isn't checked, so you should be able to get away with a single byte here, maybe even zero. Try O.

@mnot thanks for this very urgent issue. we are on it.

mnot commented