Jun Furutani / libMiMic

Fork of libMiMic by Ryo Iizuka

Revision:
19:33b9ba0859ee
Parent:
17:f29e1ca90e3d
diff -r 1970fec78229 -r 33b9ba0859ee mbed/ModBaseClass.cpp
--- a/mbed/ModBaseClass.cpp	Fri Apr 26 14:55:24 2013 +0000
+++ b/mbed/ModBaseClass.cpp	Sat Apr 27 13:31:57 2013 +0000
@@ -39,6 +39,11 @@
         if(this->_path==NULL){
             return false;
         }
+        //connectonの状態を確認
+        if(!NyLPC_cHttpdConnection_getReqStatus(i_connection._ref_inst)==NyLPC_cHttpdConnection_ReqStatus_REQPARSE)
+        {
+            return NyLPC_TBool_FALSE;
+        }        
         const NyLPC_TChar* in_url;
         in_url=NyLPC_cHttpdConnection_getUrlPrefix(i_connection._ref_inst);
         size_t base_url_len=strlen(this->_path);