contentajs
contentajs copied to clipboard
Issue with got
Hello,
Some possibility have been remove from got.
- You can't now use :
json: true
('in your got.js file).
responseType: 'json' do the job.
- The
query : {query: JSON.stringify(request)}(in ContentaJsonRpc.js) doesn't seem to work . It's ok withsearchParams: {query: JSON.stringify(request)}.
++
Thanks for looking into that. Any chance you can create a PR?
Yeps
I had an other issue with the entry point http://Proxy.domain/api . The http-proxy make a request to Drupal at http://domain.Drupal/api/ ( the / is the annoying part) ; so Drupal respond with a 301 and send a redirection to http://Drupal.domain/api . I have made some modification in ./routes/proxyHandler.js and that seems solve for me.