• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

TykTechnologies / tyk / 6938

Build:
DEFAULT BRANCH: master
Ran 15 Jul 2019 12:41PM UTC
Jobs 1
Files 0
Run time –
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
6938

push

travis-ci

buger
fix bug of request.Body will be setted to empty if call parseForm twice (#2335)

PR #2182  fix the problem

```go
		var b bytes.Buffer
		r.Body = ioutil.NopCloser(io.TeeReader(r.Body, &b))

		r.ParseForm()

		r.Body = ioutil.NopCloser(&b)

```

But when call the `parseForm` twice at different locations, the `request.Body` will be set to empty.

Because the `r.ParseForm()` will not read the body again(the second time, `r.From` and `r.PostForm` are not `nil`)

so the `io.TeeReader` will not write the body into `var b bytes.Buffer`,  and  `r.Body = ioutil.NopCloser(&b)`, the body will be empty
Jobs
ID Job ID Ran Files Coverage
2 6938.2 (LATEST_GO=true) 15 Jul 2019 12:41PM UTC 0
Travis Job 6938.2
Source Files on build 6938
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #6938
  • 82f94a59 on github
  • Prev Build on master (#6935)
  • Next Build on master (#6955)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc