mirror of https://github.com/sbt/sbt.git
When a json rpc request is specified without any headers, the size of the message may exceed the buffer that was created for reading hdeaders. This would cause an exception to be thrown when creating a string from the header buffer because the number of bytes requested would exceed the capacity of the buffer. To fix this, we can expand the buffer dynamically if needed. For the common case when the headers are specified, this should be a no-op. |
||
|---|---|---|
| .. | ||
| main | ||
| test/scala/sbt | ||