scaleway / scaleway-sdk-go

Integrate Scaleway with your Go application

Home Page:https://pkg.go.dev/github.com/scaleway/scaleway-sdk-go

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Cannot use Postman mock with contentType == application/json

SebUndefined opened this issue · comments

General infos:

  • The version of scaleway-sdk-go: v1.0.0-beta.16
  • Go version: 1.20
  • GOOS: Linux
  • GOARCH: amd64

case "application/json":

When using postman mock for development process, postman returns always "application/json; charset=utf-8" which does not fit the condition above and result in an error when parsing the content for the response.

It would be nice if this SDK could be used with postman mock api. I tried to find a way to remove this response header without success.