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

fix: Update the http status code handling on upnp #497

Merged
merged 1 commit into from
Nov 14, 2022

Conversation

tnasu
Copy link
Member

@tnasu tnasu commented Nov 14, 2022

Description

For more strict handling, I modify checking the response code whether http.StatusOK or not since UPnP doesn't design the other status code like 30x.

@tnasu tnasu self-assigned this Nov 14, 2022
@tnasu tnasu added the C: enhancement Classification: New feature or its request, or improvement in maintainability of code label Nov 14, 2022
@codecov
Copy link

codecov bot commented Nov 14, 2022

Codecov Report

Merging #497 (90e55e4) into main (0681636) will not change coverage.
The diff coverage is n/a.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #497   +/-   ##
=======================================
  Coverage   65.44%   65.44%           
=======================================
  Files         278      278           
  Lines       37936    37936           
=======================================
  Hits        24828    24828           
+ Misses      11305    11303    -2     
- Partials     1803     1805    +2     
Impacted Files Coverage Δ
libs/clist/clist.go 63.52% <0.00%> (-4.51%) ⬇️
mempool/reactor.go 78.57% <0.00%> (-1.10%) ⬇️
consensus/reactor.go 74.49% <0.00%> (-0.71%) ⬇️
consensus/state.go 73.73% <0.00%> (-0.12%) ⬇️
proxy/multi_app_conn.go 47.66% <0.00%> (ø)
blockchain/v0/pool.go 79.58% <0.00%> (+0.77%) ⬆️
abci/client/socket_client.go 72.96% <0.00%> (+0.87%) ⬆️
p2p/switch.go 66.52% <0.00%> (+2.06%) ⬆️
libs/events/events.go 98.49% <0.00%> (+5.26%) ⬆️

@tnasu tnasu marked this pull request as ready for review November 14, 2022 07:08
@Mdaiki0730 Mdaiki0730 self-requested a review November 14, 2022 08:36
Copy link
Member

@Mdaiki0730 Mdaiki0730 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: enhancement Classification: New feature or its request, or improvement in maintainability of code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants