Skip to content

Commit 9b4ee8a

Browse files
committed
return NGX_OK instead
1 parent fae222f commit 9b4ee8a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/ngx_http_lua_io_input_filter.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ ngx_http_lua_io_read_chunk(void *data, ngx_buf_t *buf, size_t size)
2626
}
2727

2828
if(file_ctx->buf_in == NULL) {
29-
return NGX_ERROR;
29+
return NGX_OK;
3030
}
3131

3232
if (size >= rest) {
@@ -69,7 +69,7 @@ ngx_http_lua_io_read_line(void *data, ngx_buf_t *buf, size_t size)
6969
#endif
7070

7171
if(file_ctx->buf_in == NULL) {
72-
return NGX_ERROR;
72+
return NGX_OK;
7373
}
7474

7575
while (size--) {
@@ -107,7 +107,7 @@ ngx_http_lua_io_read_all(void *data, ngx_buf_t *buf, size_t size)
107107
ngx_http_lua_io_file_ctx_t *file_ctx = data;
108108

109109
if(file_ctx->buf_in == NULL) {
110-
return NGX_ERROR;
110+
return NGX_OK;
111111
}
112112

113113
file_ctx->buf_in->buf->last += size;

0 commit comments

Comments
 (0)