Fixed warning with -Werror

diff --git a/src/core/transport/http/common/http_simple_response.c b/src/core/transport/http/common/http_simple_response.c
index 74acb80..2ecdd75 100644
--- a/src/core/transport/http/common/http_simple_response.c
+++ b/src/core/transport/http/common/http_simple_response.c
@@ -515,7 +515,7 @@
             break;
         }
         write = axutil_stream_write(tmp_stream, env, buf, read);
-        if(read < (AXIS2_HTTP_SIMPLE_RESPONSE_READ_SIZE - 1))
+        if(write < (AXIS2_HTTP_SIMPLE_RESPONSE_READ_SIZE - 1))
         {
             break;
         }