Changeset 79427 in vbox for trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp
- Timestamp:
- Jun 29, 2019 12:06:56 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp
r79411 r79427 144 144 if (RT_SUCCESS(rc)) 145 145 { 146 if ( a_rStrXmitBody.isNotEmpty() 147 || (a_fFlags & kDoCall_RequireBody) 146 bool fHasBody = a_rStrXmitBody.isNotEmpty() || (a_fFlags & kDoCall_RequireBody); 147 148 if ( fHasBody 148 149 || a_enmHttpMethod == RTHTTPMETHOD_POST 149 150 || a_enmHttpMethod == RTHTTPMETHOD_PUT) 150 151 rc = ociSignRequestEnsureContentLength(a_hHttp, a_rStrXmitBody.length()); 151 152 if ( RT_SUCCESS(rc) 152 && a_rStrXmitBody.isNotEmpty())153 && fHasBody) 153 154 rc = ociSignRequestEnsureXContentSha256(a_hHttp, a_rStrXmitBody.c_str(), a_rStrXmitBody.length()); 154 155 if (RT_SUCCESS(rc)) … … 162 163 } 163 164 } 164 RT_NOREF_PV(a_fFlags); /* We don't need to use the kDoCall_OciReqSignExcludeBody flag it turns out. */165 165 return rc; 166 166 }
Note:
See TracChangeset
for help on using the changeset viewer.