jh3141 / cordova-plugin-httpserver-dynamic

A plugin for Apache Cordova that runs a web server that is able to serve dynamic content.
5 stars 2 forks source link

At least one custom header is required { "X-Header": "dummy" } #3

Open biagio-ra opened 5 years ago

biagio-ra commented 5 years ago

Your plugin returns an error message in the content body, unless a header value is provided.

Apparently, it doesn't like empty custom headers {}. For now, I just added: {X-Header: "dummy"} to keep the plugin from returning an error message in the content.