Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of libMiMic by
Diff: core/http/NyLPC_cHttpBasicHeaderParser.c
- Revision:
- 41:2389bd6b6f74
- Parent:
- 14:4618692ec239
- Child:
- 48:00d211aac2ec
diff -r d4e62303ad85 -r 2389bd6b6f74 core/http/NyLPC_cHttpBasicHeaderParser.c
--- a/core/http/NyLPC_cHttpBasicHeaderParser.c Thu Jun 20 03:15:34 2013 +0000
+++ b/core/http/NyLPC_cHttpBasicHeaderParser.c Sun Jun 30 14:17:42 2013 +0000
@@ -391,10 +391,12 @@
if(i_header->transfer_encoding!=NyLPC_THttpMessgeHeader_TransferEncoding_CHUNKED){
//Chunkedが無い場合はContent-Lengthは0と仮定
i_header->content_length=0;
+ }else{
+ //content-length無し && Chunked有
+ //OK
}
- }
- //ContentLengthあるのにChunkedとは何事
- if(i_header->transfer_encoding!=NyLPC_THttpMessgeHeader_TransferEncoding_NONE){
+ }else if(i_header->transfer_encoding!=NyLPC_THttpMessgeHeader_TransferEncoding_NONE){
+ //ContentLengthあるのにChunkedとは何事
*o_error=400;
break;
}
