GitterPy icon indicating copy to clipboard operation
GitterPy copied to clipboard

Dealing with delete method and not returning text

Open fernand0 opened this issue 2 years ago • 0 comments

When using the request_process is used for deleting (DELETE method), it won't return a value. So:

  • It returns <Response [204]>
  • the .text value from requests module is empty.

The proposal in this patch is to check the reply text and, if empty, return the response. Not sure if there is a more adequate way to do this.

fernand0 avatar Dec 27 '21 11:12 fernand0