apinf / platform

Apinf - Open source API management platform with multi proxy and protocol support
https://apinf.com/
European Union Public License 1.1
74 stars 33 forks source link

Create proxy backend fails #3670

Closed matleppa closed 5 years ago

matleppa commented 5 years ago

When a new proxy backend is tried to create, it fails with exceptions:

Exception in delivering result of invoking 'publishApiBackendOnApiUmbrella': TypeError: Cannot read property 'split' of undefined at Object.custom (http://localhost:3000/app/app.js?hash=3b3eb6445e556fd9448da804fd48d42698ed7b67:2231:32)

(rest of exception skipped)

Reason for this is that Request Headers input field is empty.

Solution

Perform checking to Request Headers only in case there is a value in field.