Changeset 87303 in vbox
- Timestamp:
- Jan 18, 2021 6:39:18 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp
r87302 r87303 144 144 if (RT_SUCCESS(rc)) 145 145 { 146 bool fHasBody = a_rStrXmitBody.isNotEmpty() || (a_fFlags & kDoCall_RequireBody); 146 bool fHasBody 147 = a_rStrXmitBody.isNotEmpty() 148 /* but sometimes we need an empty body signed too */ 149 || (a_fFlags & kDoCall_RequireBody) 150 || a_enmHttpMethod == RTHTTPMETHOD_POST 151 || a_enmHttpMethod == RTHTTPMETHOD_PUT; 147 152 148 if ( fHasBody 149 || a_enmHttpMethod == RTHTTPMETHOD_POST 150 || a_enmHttpMethod == RTHTTPMETHOD_PUT) 153 if (fHasBody) 154 { 151 155 rc = ociSignRequestEnsureContentLength(a_hHttp, a_rStrXmitBody.length()); 152 if ( RT_SUCCESS(rc)153 && fHasBody)154 rc = ociSignRequestEnsureXContentSha256(a_hHttp, a_rStrXmitBody.c_str(), a_rStrXmitBody.length());156 if (RT_SUCCESS(rc)) 157 rc = ociSignRequestEnsureXContentSha256(a_hHttp, a_rStrXmitBody.c_str(), a_rStrXmitBody.length()); 158 } 155 159 if (RT_SUCCESS(rc)) 156 160 rc = ociSignRequestEnsureDateOrXDate(a_hHttp);
Note:
See TracChangeset
for help on using the changeset viewer.