Ensured the NPE should never again happen by accessing the request from the response instead of from the socket context.
This commit is contained in:
@@ -787,6 +787,7 @@ public class WebServer {
|
||||
*/
|
||||
private void prepareResponse() {
|
||||
Response response = currentResponse;
|
||||
Request request = (Request) response.getRequest();
|
||||
byte[] headerBytes = null;
|
||||
IContent content = null;
|
||||
ByteBuffer buffer = null;
|
||||
|
||||
Reference in New Issue
Block a user