@@ -15,7 +15,7 @@ async function createConcept(params, host) {
1515 desc : params . desc ,
1616 units : [ ] . concat ( params . units ) . map ( el => getURI ( el ) ) ,
1717 } ,
18- json : true ,
18+ form : true ,
1919 } ) ;
2020 return res . statusCode === 200 ;
2121 } catch ( error ) {
@@ -38,7 +38,7 @@ async function createFunction(params, host) {
3838 returnsNames : [ ] . concat ( params . returnsNames ) . map ( el => getURI ( el ) ) ,
3939 returnsUnits : [ ] . concat ( params . returnsUnits ) . map ( el => getURI ( el ) ) ,
4040 } ,
41- json : true ,
41+ form : true ,
4242 } ) ;
4343 return res . statusCode === 200 ;
4444 } catch ( error ) {
@@ -72,7 +72,7 @@ async function createAsyncFunction(params, callPath, host) {
7272
7373 try {
7474 const res = await got . post ( path , { body : form } ) ;
75- await got . post ( callPath , { body : { command : 'fixit' } , json : true } ) ;
75+ await got . post ( callPath , { body : { command : 'fixit' } , form : true } ) ;
7676 return res . statusCode === 200 ;
7777 } catch ( error ) {
7878 return false ;
@@ -93,7 +93,7 @@ async function createRelation(params, host) {
9393 end : getURI ( params . end ) ,
9494 mathRelation : params . mathRelation ,
9595 } ,
96- json : true ,
96+ form : true ,
9797 } ) ;
9898 return res . statusCode === 200 ;
9999 } catch ( error ) {
@@ -137,7 +137,7 @@ async function create(...args) {
137137 created = createRelation ( params , this . host ) ;
138138 }
139139 try {
140- await got . post ( path , { body : { command : 'fixit' } , json : true } ) ;
140+ await got . post ( path , { body : { command : 'fixit' } , form : true } ) ;
141141 } catch ( error ) { /**/ }
142142 return created ;
143143}
0 commit comments