ng-apimock / core

ng-apimock core module

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Responses other than content-type application/json are also stringified

mdasberg opened this issue ยท comments

When using a response other than application/json the result is stringified.

{
  "expression": "/api/text",
  "method": "GET",
  "name": "webUrl",
  "responses": {
    "defaultData": {
      "default": true,
      "status": 200,
      "headers": {
        "content-type": "text/plain; charset=utf-8"
      },
      "data": "https://github.com/"
    }
  }
}

will result in "https://github.com/"

๐ŸŽ‰ This issue has been resolved in version 1.0.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€