Skip to content

Commit abeae8f

Browse files
hwmaieraescolar
authored andcommitted
net: lib: http_server: Fix dynamic HTTP post zero 0 length reply
Fix issue in http server that a http post was unable to send a 0 length reply. Signed-off-by: Henrik Maier <[email protected]>
1 parent 23736ee commit abeae8f

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

subsys/net/lib/http/http_server_http1.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -233,11 +233,10 @@ static int dynamic_post_req(struct http_resource_detail_dynamic *dynamic_detail,
233233
}
234234

235235
(void)http_server_sendall(client, crlf, 2);
236-
237-
offset += copy_len;
238-
remaining -= copy_len;
239236
}
240237

238+
offset += copy_len;
239+
remaining -= copy_len;
241240
copy_len = MIN(remaining, dynamic_detail->data_buffer_len);
242241
}
243242

0 commit comments

Comments
 (0)