bug fix:

1, OnWrite crash, while request/response is NULL.