jenius-apps / nightingale-rest-api-client

A modern, resource-efficient REST API client for Windows
https://nightingale.rest
MIT License
769 stars 36 forks source link

Trailing question mark on all POST requests #139

Closed tipa closed 4 years ago

tipa commented 4 years ago

It appears that a question mark ? is appended to all POST requests even though there are no parameters specified. This causes problems for some APIs, in my case this one: https://dev.fitbit.com/build/reference/web-api/oauth2/#retrieve-state-of-tokens The endpoint returns

{
  "errors": [
    {
      "errorType": "not_found",
      "fieldName": "n/a",
      "message": "The API you are requesting could not be found."
    }
  ],
  "success": false
}

because of the trailing ?

dpaulino commented 4 years ago

Thanks for reporting this. I'll look into it asap

dpaulino commented 4 years ago

@tipa fix should be available now. Can you try again?

dpaulino commented 4 years ago

It should be working now. Feel free to reopen if not!

tipa commented 4 years ago

Thanks for the quick fix