Azure IoT common library
Dependents: STM32F746_iothub_client_sample_mqtt f767zi_mqtt iothub_client_sample_amqp iothub_client_sample_http ... more
Diff: httpapiex.c
- Revision:
- 48:81866008bba4
- Parent:
- 25:8507bf644fdf
--- a/httpapiex.c Thu Jul 12 18:10:56 2018 -0700 +++ b/httpapiex.c Tue Sep 11 11:15:08 2018 -0700 @@ -125,7 +125,7 @@ )) { if (! *isOriginalRequestHttpHeadersHandle) - { + { HTTPHeaders_Free(*toBeUsedRequestHttpHeadersHandle); } *toBeUsedRequestHttpHeadersHandle = NULL; @@ -195,7 +195,7 @@ HTTP_HEADERS_HANDLE requestHttpHeadersHandle, BUFFER_HANDLE requestContent, unsigned int* statusCode, HTTP_HEADERS_HANDLE responseHttpHeadersHandle, BUFFER_HANDLE responseContent, - const char** toBeUsedRelativePath, + const char** toBeUsedRelativePath, HTTP_HEADERS_HANDLE *toBeUsedRequestHttpHeadersHandle, bool *isOriginalRequestHttpHeadersHandle, BUFFER_HANDLE *toBeUsedRequestContent, bool *isOriginalRequestContent, unsigned int** toBeUsedStatusCode, @@ -216,7 +216,7 @@ if (buildRequestHttpHeadersHandle(handle, *toBeUsedRequestContent, requestHttpHeadersHandle, isOriginalRequestHttpHeadersHandle, toBeUsedRequestHttpHeadersHandle) != 0) { /*Codes_SRS_HTTPAPIEX_02_010: [If any of the operations in SRS_HTTAPIEX_02_009 fails, then HTTPAPIEX_ExecuteRequest shall return HTTPAPIEX_ERROR.] */ - if (*isOriginalRequestContent == false) + if (*isOriginalRequestContent == false) { BUFFER_delete(*toBeUsedRequestContent); } @@ -506,7 +506,7 @@ size_t i; size_t vectorSize; HTTPAPIEX_HANDLE_DATA* handleData = (HTTPAPIEX_HANDLE_DATA*)handle; - + if (handleData->k == 2) { HTTPAPI_CloseConnection(handleData->httpHandle); @@ -542,7 +542,7 @@ { /*this function is called after the option value has been saved (cloned)*/ int result; - + /*decide bwtween update or create*/ HTTPAPIEX_SAVED_OPTION* whereIsIt = (HTTPAPIEX_SAVED_OPTION*)VECTOR_find_if(handleData->savedOptions, sameName, optionName); if (whereIsIt != NULL) @@ -575,7 +575,7 @@ } } } - + return result; } @@ -623,7 +623,7 @@ /*Codes_SRS_HTTPAPIEX_02_041: [If creating or updating the pair optionName/value fails then shall return HTTPAPIEX_ERROR.] */ result = HTTPAPIEX_ERROR; LOG_HTTAPIEX_ERROR(); - + } else {