VirtualBox

Ignore:
Timestamp:
Sep 4, 2018 9:28:28 AM (6 years ago)
Author:
vboxsync
Message:

IPRT/http: s/RTHttpAppend/RTHttpAdd/[Raw]Header, defining FRONT and BACK flags. bugref:9167

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/rest/RTCRestClientApiBaseOci.cpp

    r74053 r74060  
    146146        RTStrPrintf(szTmp, sizeof(szTmp), "%zu", a_rStrXmitBody.length());
    147147
    148         rc = RTHttpAppendHeader(a_hHttp, s_szContentLength, szTmp, 0);
     148        rc = RTHttpAddHeader(a_hHttp, s_szContentLength, szTmp, RTHTTPADDHDR_F_BACK);
    149149        AssertRCReturn(rc, rc);
    150150        pszContentLength = RTHttpGetHeader(a_hHttp, RT_STR_TUPLE(s_szContentLength));
     
    177177        rc = RTBase64EncodeEx(abHash, sizeof(abHash), RTBASE64_FLAGS_NO_LINE_BREAKS, szTmp, sizeof(szTmp), NULL);
    178178
    179         rc = RTHttpAppendHeader(a_hHttp, s_szXContentSha256, szTmp, 0);
     179        rc = RTHttpAddHeader(a_hHttp, s_szXContentSha256, szTmp, RTHTTPADDHDR_F_BACK);
    180180        AssertRCReturn(rc, rc);
    181181        pszValue = RTHttpGetHeader(a_hHttp, RT_STR_TUPLE(s_szXContentSha256));
     
    223223                    Time.u8Hour, Time.u8Minute, Time.u8Second);
    224224
    225         rc = RTHttpAppendHeader(a_hHttp, s_szXDate, szTmp, 0);
     225        rc = RTHttpAddHeader(a_hHttp, s_szXDate, szTmp, RTHTTPADDHDR_F_BACK);
    226226        AssertRCReturn(rc, rc);
    227227        pszXDate = RTHttpGetHeader(a_hHttp, RT_STR_TUPLE(s_szXDate));
     
    304304                                     * Finally, add the authorization header.
    305305                                     */
    306                                     rc = RTHttpAppendHeader(a_hHttp, "Authorization", strAuth.c_str(), 0);
     306                                    rc = RTHttpAddHeader(a_hHttp, "Authorization", strAuth.c_str(), RTHTTPADDHDR_F_FRONT);
    307307                                    AssertRC(rc);
    308308                                }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette