You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I was working on an endpoint that needed to receive requests in the format x-www-form-urlencoded. This causes issues with the JSON decoder line in handler.go:
Obviously if the data isn't in JSON format it can't be decoded. However if you even attempt to decode r.Body, because it is a io stream, it is emptied and can't be accessed.
I devised a way of fixing this in my project, and was curious if there was any interest in a pull request for this issue.
The text was updated successfully, but these errors were encountered:
I was working on an endpoint that needed to receive requests in the format x-www-form-urlencoded. This causes issues with the JSON decoder line in handler.go:
Obviously if the data isn't in JSON format it can't be decoded. However if you even attempt to decode r.Body, because it is a io stream, it is emptied and can't be accessed.
I devised a way of fixing this in my project, and was curious if there was any interest in a pull request for this issue.
The text was updated successfully, but these errors were encountered: