Skip to content

Commit

Permalink
api: Update Render by adding the request
Browse files Browse the repository at this point in the history
  • Loading branch information
roosterfish committed Sep 12, 2024
1 parent 089dee9 commit 36b2599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion api/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ func NewResponse(response *http.Response) response.Response {
}

// Render implements response.Response for Response, enabling use with a rest.EndpointAction Handler function.
func (r *Response) Render(w http.ResponseWriter) error {
func (r *Response) Render(w http.ResponseWriter, req *http.Request) error {
decoder := json.NewDecoder(r.response.Body)

var responseRaw *api.ResponseRaw
Expand Down

0 comments on commit 36b2599

Please sign in to comment.