Replies: 1 comment
-
Hi @thetarby, Before the discussion, I assume you are refer the code of middleware was get from here: https://github.com/go-resty/resty/blob/master/middleware.go#L322 As we can see, the func called And status code If you want to makesure this is empty content, you can have 2 ways to validate it: Option 1, using
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
In middleware.go, the code where error is set to nil is never reached if status is 201 no content because of the if block at the beginning of the method.
This makes it impossible to check errors like
This does not seem to be the desired behavior to me, am I missing something or is this an issue?
Beta Was this translation helpful? Give feedback.
All reactions