@@ -481,7 +481,7 @@ func (dbx *apiImpl) AlphaUpload(arg *CommitInfoWithProperties, content io.Reader
481481
482482 headers := map [string ]string {
483483 "Content-Type" : "application/octet-stream" ,
484- "Dropbox-API-Arg" : string (b ),
484+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
485485 }
486486 if dbx .Config .AsMemberID != "" {
487487 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -1640,7 +1640,7 @@ func (dbx *apiImpl) Download(arg *DownloadArg) (res *FileMetadata, content io.Re
16401640 }
16411641
16421642 headers := map [string ]string {
1643- "Dropbox-API-Arg" : string (b ),
1643+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
16441644 }
16451645 for k , v := range arg .ExtraHeaders {
16461646 headers [k ] = v
@@ -1710,7 +1710,7 @@ func (dbx *apiImpl) DownloadZip(arg *DownloadZipArg) (res *DownloadZipResult, co
17101710 }
17111711
17121712 headers := map [string ]string {
1713- "Dropbox-API-Arg" : string (b ),
1713+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
17141714 }
17151715 if dbx .Config .AsMemberID != "" {
17161716 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -1777,7 +1777,7 @@ func (dbx *apiImpl) Export(arg *ExportArg) (res *ExportResult, content io.ReadCl
17771777 }
17781778
17791779 headers := map [string ]string {
1780- "Dropbox-API-Arg" : string (b ),
1780+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
17811781 }
17821782 if dbx .Config .AsMemberID != "" {
17831783 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -1921,7 +1921,7 @@ func (dbx *apiImpl) GetPreview(arg *PreviewArg) (res *FileMetadata, content io.R
19211921 }
19221922
19231923 headers := map [string ]string {
1924- "Dropbox-API-Arg" : string (b ),
1924+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
19251925 }
19261926 if dbx .Config .AsMemberID != "" {
19271927 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -2120,7 +2120,7 @@ func (dbx *apiImpl) GetThumbnail(arg *ThumbnailArg) (res *FileMetadata, content
21202120 }
21212121
21222122 headers := map [string ]string {
2123- "Dropbox-API-Arg" : string (b ),
2123+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
21242124 }
21252125 if dbx .Config .AsMemberID != "" {
21262126 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -2187,7 +2187,7 @@ func (dbx *apiImpl) GetThumbnailBatch(arg *GetThumbnailBatchArg) (res *GetThumbn
21872187 }
21882188
21892189 headers := map [string ]string {
2190- "Dropbox-API-Arg" : string (b ),
2190+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
21912191 }
21922192 if dbx .Config .AsMemberID != "" {
21932193 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -3696,7 +3696,7 @@ func (dbx *apiImpl) Upload(arg *CommitInfo, content io.Reader) (res *FileMetadat
36963696
36973697 headers := map [string ]string {
36983698 "Content-Type" : "application/octet-stream" ,
3699- "Dropbox-API-Arg" : string (b ),
3699+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
37003700 }
37013701 if dbx .Config .AsMemberID != "" {
37023702 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -3763,7 +3763,7 @@ func (dbx *apiImpl) UploadSessionAppendV2(arg *UploadSessionAppendArg, content i
37633763
37643764 headers := map [string ]string {
37653765 "Content-Type" : "application/octet-stream" ,
3766- "Dropbox-API-Arg" : string (b ),
3766+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
37673767 }
37683768 if dbx .Config .AsMemberID != "" {
37693769 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -3828,7 +3828,7 @@ func (dbx *apiImpl) UploadSessionAppend(arg *UploadSessionCursor, content io.Rea
38283828
38293829 headers := map [string ]string {
38303830 "Content-Type" : "application/octet-stream" ,
3831- "Dropbox-API-Arg" : string (b ),
3831+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
38323832 }
38333833 if dbx .Config .AsMemberID != "" {
38343834 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -3890,7 +3890,7 @@ func (dbx *apiImpl) UploadSessionFinish(arg *UploadSessionFinishArg, content io.
38903890
38913891 headers := map [string ]string {
38923892 "Content-Type" : "application/octet-stream" ,
3893- "Dropbox-API-Arg" : string (b ),
3893+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
38943894 }
38953895 if dbx .Config .AsMemberID != "" {
38963896 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
@@ -4089,7 +4089,7 @@ func (dbx *apiImpl) UploadSessionStart(arg *UploadSessionStartArg, content io.Re
40894089
40904090 headers := map [string ]string {
40914091 "Content-Type" : "application/octet-stream" ,
4092- "Dropbox-API-Arg" : string (b ),
4092+ "Dropbox-API-Arg" : dropbox . HTTPHeaderSafeJSON (b ),
40934093 }
40944094 if dbx .Config .AsMemberID != "" {
40954095 headers ["Dropbox-API-Select-User" ] = dbx .Config .AsMemberID
0 commit comments