File tree 2 files changed +7
-0
lines changed
2 files changed +7
-0
lines changed Original file line number Diff line number Diff line change 1
1
# Changelog
2
2
3
+ ## Next Release
4
+
5
+ - Fix iterator bug for uploading new file versions ([ #531 ] ( https://github.com/box/box-node-sdk/pull/531 ) )
6
+
3
7
## 1.34.0 [ 2020-08-04]
4
8
5
9
- Add zip functionality ([ #525 ] ( https://github.com/box/box-node-sdk/pull/525 ) )
Original file line number Diff line number Diff line change @@ -160,6 +160,9 @@ class PagingIterator {
160
160
if ( response . request . method === 'GET' ) {
161
161
this . options . qs [ this . nextField ] = this . nextValue ;
162
162
} else if ( response . request . method === 'POST' ) {
163
+ if ( ! this . options . body ) {
164
+ this . options . body = { } ;
165
+ }
163
166
this . options . body [ this . nextField ] = this . nextValue ;
164
167
let bodyString = JSON . stringify ( this . options . body ) ;
165
168
this . options . headers [ 'content-length' ] = bodyString . length ;
You can’t perform that action at this time.
0 commit comments