File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -489,17 +489,17 @@ export default {
489489 return response
490490 } ,
491491 createPartitionedTopic ( cluster , topicPath , numPartitions ) {
492- const response = ApiBase ( ) . put ( `${ cluster } /persistent/${ topicPath } /partitions` , numPartitions , {
492+ const response = ApiBase ( ) . put ( `${ cluster } /persistent/${ topicPath } /partitions` , JSON . stringify ( numPartitions ) , {
493493 headers : {
494- 'Content-Type' : 'text/plain '
494+ 'Content-Type' : 'application/json '
495495 }
496496 } )
497497 return response
498498 } ,
499499 createMissingPartitions ( cluster , topicPath ) {
500- const response = ApiBase ( ) . post ( `${ cluster } /persistent/${ topicPath } /createMissedPartitions` , '' , {
500+ const response = ApiBase ( ) . post ( `${ cluster } /persistent/${ topicPath } /createMissedPartitions` , JSON . stringify ( '' ) , {
501501 headers : {
502- 'Content-Type' : 'text/plain '
502+ 'Content-Type' : 'application/json '
503503 }
504504 } )
505505 return response
You can’t perform that action at this time.
0 commit comments