Skip to content

Commit

Permalink
feat: finished
Browse files Browse the repository at this point in the history
  • Loading branch information
apoorvcodes committed Jun 19, 2024
1 parent c35da48 commit b0ec77e
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions build.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ func build(h Handler, params map[string]string) func(http.Handler) http.Handler
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
resp := response(w, req)
reqs := request(req)
reqs.Params = params
h(resp, reqs)
next.ServeHTTP(w, req)
})
Expand Down
2 changes: 0 additions & 2 deletions request.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ SOFTWARE.

import (
"encoding/json"
"fmt"
"mime/multipart"
"net"
"net/http"
Expand Down Expand Up @@ -66,7 +65,6 @@ func request(r *http.Request) *Request {
body, err := ParseRequestBody(r); if err != nil {
panic(err)
}
fmt.Println(body)
req := &Request{
ref: r,
fileReader: nil,
Expand Down

0 comments on commit b0ec77e

Please sign in to comment.