HTTP IAP bug #69
Labels
needs clarification
Needs clarification or inputs from user
projects
Projects-related (demos, applications, examples) issue or pull-request.
I think there is a potential bug in the HTTP IAP example. In the web server, there this code:
STM32CubeF7/Projects/STM32756G_EVAL/Applications/LwIP/LwIP_IAP/Src/httpserver.c
Lines 232 to 269 in f8bda02
and
STM32CubeF7/Projects/STM32F769I_EVAL/Applications/LwIP/LwIP_IAP/Src/httpserver.c
Lines 232 to 269 in f8bda02
which is used for handling GET request. POST requests are handled in
else if()
clause on lines 272 and 308. However, when sending of the binary is already happening, this can cause problem when the binary will contain stringGET /
and it will be just at the beginning of the data packet (it happened to me). Then we will skip this one packet and won't write the data at all.My proposal for solution would be either add a check for which page are we on to the line 232, or move the clause that is handling the raw data (from line 308) to the beginning of the if.
Similar problem is also in the STM32CubeF4 project, I'll make separate issue there as the code is a little bit different.
The text was updated successfully, but these errors were encountered: