dom96 / httpbeast

A highly performant, multi-threaded HTTP 1.1 server written in Nim.
MIT License
442 stars 51 forks source link

Too many new line between response header and body. #79

Closed itsumura-h closed 1 year ago

itsumura-h commented 1 year ago
appendAll(
  "HTTP/1.1 ", respCode,
  "\c\LContent-Length: ", bodyLen,
  "\c\LServer: ", serverInfo,
  "\c\LDate: ", serverDate,
  otherHeaders,
  "\c\L\c\L", # <----- here
  body
)

It seems that it should be SINGLE \c\L

https://github.com/dom96/httpbeast/blob/master/src/httpbeast.nim#L447

itsumura-h commented 1 year ago

my fault