@@ -1185,21 +1185,21 @@ var convertToBatch = (requests, config, batchRequest) => {
11851185 if ( ( batchRequest == null ? void 0 : batchRequest . inChangeSet ) === false ) internalRequest . inChangeSet = false ;
11861186 const inChangeSet = internalRequest . method === "GET" ? false : ! ! internalRequest . inChangeSet ;
11871187 if ( ! inChangeSet && currentChangeSet ) {
1188- batchBody . push ( `
1188+ batchBody . push ( `\r
11891189--${ currentChangeSet } --` ) ;
11901190 currentChangeSet = null ;
11911191 contentId = 1e5 ;
11921192 }
11931193 if ( ! currentChangeSet ) {
1194- batchBody . push ( `
1194+ batchBody . push ( `\r
11951195--${ batchBoundary } ` ) ;
11961196 if ( inChangeSet ) {
11971197 currentChangeSet = `changeset_${ generateUUID ( ) } ` ;
11981198 batchBody . push ( "Content-Type: multipart/mixed;boundary=" + currentChangeSet ) ;
11991199 }
12001200 }
12011201 if ( inChangeSet ) {
1202- batchBody . push ( `
1202+ batchBody . push ( `\r
12031203--${ currentChangeSet } ` ) ;
12041204 }
12051205 batchBody . push ( "Content-Type: application/http" ) ;
@@ -1209,10 +1209,10 @@ var convertToBatch = (requests, config, batchRequest) => {
12091209 batchBody . push ( `Content-ID: ${ contentIdValue } ` ) ;
12101210 }
12111211 if ( ! ( ( _a2 = internalRequest . path ) == null ? void 0 : _a2 . startsWith ( "$" ) ) ) {
1212- batchBody . push ( `
1212+ batchBody . push ( `\r
12131213${ internalRequest . method } ${ config . dataApi . url } ${ internalRequest . path } HTTP/1.1`) ;
12141214 } else {
1215- batchBody . push ( `
1215+ batchBody . push ( `\r
12161216${ internalRequest . method } ${ internalRequest . path } HTTP/1.1`) ;
12171217 }
12181218 if ( internalRequest . method === "GET" ) {
@@ -1224,19 +1224,20 @@ ${internalRequest.method} ${internalRequest.path} HTTP/1.1`);
12241224 addHeaders ( internalRequest . headers , batchBody ) ;
12251225 }
12261226 if ( internalRequest . data ) {
1227- batchBody . push ( `
1227+ batchBody . push ( `\r
12281228${ processData ( internalRequest . data , config ) } `) ;
12291229 }
12301230 } ) ;
12311231 if ( currentChangeSet ) {
1232- batchBody . push ( `
1232+ batchBody . push ( `\r
12331233--${ currentChangeSet } --` ) ;
12341234 }
1235- batchBody . push ( `
1236- --${ batchBoundary } --` ) ;
1235+ batchBody . push ( `\r
1236+ --${ batchBoundary } --\r
1237+ ` ) ;
12371238 const headers = setStandardHeaders ( batchRequest == null ? void 0 : batchRequest . userHeaders ) ;
12381239 headers [ "Content-Type" ] = `multipart/mixed;boundary=${ batchBoundary } ` ;
1239- return { headers, body : batchBody . join ( "\n" ) } ;
1240+ return { headers, body : batchBody . join ( "\r\ n" ) } ;
12401241} ;
12411242var findCollectionName = ( entityName ) => {
12421243 if ( isNull ( entityNames ) ) return null ;
0 commit comments