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:
wcrisman
2014-07-27 22:13:01 -07:00
parent 164841677b
commit cd0976ea2e

View File

@@ -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;