Skip to content

Commit

Permalink
Update util.go
Browse files Browse the repository at this point in the history
  • Loading branch information
donnie4w committed Jan 21, 2024
1 parent 7a32d3b commit b271bfd
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions tc/util.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
package tc

import (
"bytes"
"io"

"github.com/donnie4w/tlnet"
)

Expand All @@ -21,10 +18,4 @@ func reqjson(hc *tlnet.HttpContext) bool {

func reqform(hc *tlnet.HttpContext) bool {
return "application/x-www-form-urlencoded" == hc.Request().Header.Get("content-type")
}

func getHttpBody(hc *tlnet.HttpContext) []byte{
var buf bytes.Buffer
io.Copy(&buf, hc.Request().Body)
return buf.Bytes()
}

0 comments on commit b271bfd

Please sign in to comment.