Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue: #1917 in github.com/go-swagger/go-swagger: Don't attempt to unmarshal empty response bodies to prevent panic. #135

Merged
merged 1 commit into from
Apr 11, 2019

Conversation

jeffreydwalter
Copy link

Short-circuited the unmarshaling in the TextConsumer when response body is empty.

@codecov
Copy link

codecov bot commented Apr 11, 2019

Codecov Report

Merging #135 into master will decrease coverage by 0.06%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #135      +/-   ##
==========================================
- Coverage   80.65%   80.59%   -0.07%     
==========================================
  Files          40       40              
  Lines        2290     2293       +3     
==========================================
+ Hits         1847     1848       +1     
- Misses        344      345       +1     
- Partials       99      100       +1
Impacted Files Coverage Δ
text.go 92.59% <100%> (-3.49%) ⬇️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1097371...65735b4. Read the comment docs.

…marshal empty response bodies to prevent panic.

Signed-off-by: jwalter1-quest <jeff.walter@quest.com>
@casualjim casualjim merged commit 3d6572c into go-openapi:master Apr 11, 2019
kzys pushed a commit to kzys/runtime that referenced this pull request Dec 17, 2022
This version of vsock fully supports Go 1.12 runtime network poller
integration, and is compliant with net.Listener and net.Conn as
checked by golang.org/x/net/nettest.

Fixes go-openapi#135.

Signed-off-by: Matt Layher <mdlayher@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants