=htc fix error message in response parser
Port of https://github.com/spray/spray/pull/930
This commit is contained in:
parent
5785803eb7
commit
1b1aa62072
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue