=htc fix error message in response parser

Port of https://github.com/spray/spray/pull/930
This commit is contained in:
Mathias 2014-10-06 09:24:24 +02:00
parent 5785803eb7
commit 1b1aa62072

View file

@ -112,7 +112,7 @@ private[http] class HttpResponseParser(_settings: ParserSettings,
if (clh.isEmpty) {
emitResponseStart(chunkedEntity(cth), completedHeaders)
parseChunk(input, bodyStart, closeAfterResponseCompletion)
} else fail("A chunked request must not contain a Content-Length header.")
} else fail("A chunked response must not contain a Content-Length header.")
} else parseEntity(completedHeaders, protocol, input, bodyStart, clh, cth, teh = None, hostHeaderPresent,
closeAfterResponseCompletion)
}