Changeset 74060 in vbox for trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp
- Timestamp:
- Sep 4, 2018 9:28:28 AM (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp
r74053 r74060 146 146 RTStrPrintf(szTmp, sizeof(szTmp), "%zu", a_rStrXmitBody.length()); 147 147 148 rc = RTHttpA ppendHeader(a_hHttp, s_szContentLength, szTmp, 0);148 rc = RTHttpAddHeader(a_hHttp, s_szContentLength, szTmp, RTHTTPADDHDR_F_BACK); 149 149 AssertRCReturn(rc, rc); 150 150 pszContentLength = RTHttpGetHeader(a_hHttp, RT_STR_TUPLE(s_szContentLength)); … … 177 177 rc = RTBase64EncodeEx(abHash, sizeof(abHash), RTBASE64_FLAGS_NO_LINE_BREAKS, szTmp, sizeof(szTmp), NULL); 178 178 179 rc = RTHttpA ppendHeader(a_hHttp, s_szXContentSha256, szTmp, 0);179 rc = RTHttpAddHeader(a_hHttp, s_szXContentSha256, szTmp, RTHTTPADDHDR_F_BACK); 180 180 AssertRCReturn(rc, rc); 181 181 pszValue = RTHttpGetHeader(a_hHttp, RT_STR_TUPLE(s_szXContentSha256)); … … 223 223 Time.u8Hour, Time.u8Minute, Time.u8Second); 224 224 225 rc = RTHttpA ppendHeader(a_hHttp, s_szXDate, szTmp, 0);225 rc = RTHttpAddHeader(a_hHttp, s_szXDate, szTmp, RTHTTPADDHDR_F_BACK); 226 226 AssertRCReturn(rc, rc); 227 227 pszXDate = RTHttpGetHeader(a_hHttp, RT_STR_TUPLE(s_szXDate)); … … 304 304 * Finally, add the authorization header. 305 305 */ 306 rc = RTHttpA ppendHeader(a_hHttp, "Authorization", strAuth.c_str(), 0);306 rc = RTHttpAddHeader(a_hHttp, "Authorization", strAuth.c_str(), RTHTTPADDHDR_F_FRONT); 307 307 AssertRC(rc); 308 308 }
Note:
See TracChangeset
for help on using the changeset viewer.