Skip to content

Commit

Permalink
Prevent potential issue in chunked response parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
albinowax committed Mar 14, 2019
1 parent 6f74704 commit 0ab7410
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/ThreadedRequestEngine.kt
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,8 @@ open class ThreadedRequestEngine(url: String, val threads: Int, maxQueueSize: In
val chunkLengthStart = 0
val chunkLengthEnd = buf.indexOf("\r\n")
if(chunkLengthEnd == -1) {
throw RuntimeException("Coulnd't find the chunk length. Response size may be unspecified - try Burp request engine instead?")
return Result(-1, -1)
//throw RuntimeException("Coulnd't find the chunk length. Response size may be unspecified - try Burp request engine instead?")
}

try {
Expand Down

0 comments on commit 0ab7410

Please sign in to comment.