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 HTTP_URI typo in http.py #148

Merged
merged 1 commit into from
Nov 13, 2020
Merged

Fix HTTP_URI typo in http.py #148

merged 1 commit into from
Nov 13, 2020

Conversation

aisk
Copy link
Member

@aisk aisk commented Nov 12, 2020

close #140

@codecov
Copy link

codecov bot commented Nov 12, 2020

Codecov Report

Merging #148 (faf1055) into master (01b016b) will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #148   +/-   ##
=======================================
  Coverage   84.05%   84.05%           
=======================================
  Files          44       44           
  Lines        4133     4133           
=======================================
  Hits         3474     3474           
  Misses        659      659           
Impacted Files Coverage Δ
thriftpy2/http.py 87.00% <100.00%> (ø)

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 01b016b...faf1055. Read the comment docs.

@ethe ethe merged commit 4c32f3b into master Nov 13, 2020
@aisk aisk deleted the issue-140 branch November 13, 2020 06:30
@@ -60,7 +60,7 @@
from thriftpy2.transport import TBufferedTransportFactory


HTTP_URI = '{scheme}://{host}:{port}{path}'
HTTP_URI = '{scheme}://{host}:{port}/{path}'
Copy link

Choose a reason for hiding this comment

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

This change just broke things for me.

@aisk
Copy link
Member Author

aisk commented Jan 26, 2021

Really sorry for the break, so should we add a if statement and and the / if it not exists?

@dmulter
Copy link

dmulter commented Jan 26, 2021

Your call, but since the standard in urlparse is to have a starting slash, I would think it's the responsibility of the caller to make sure the path is in that format. Could also be clarified in the docs. Anyway, that would be my opinion.

aisk added a commit that referenced this pull request Jan 26, 2021
aisk added a commit that referenced this pull request Jan 26, 2021
@aisk
Copy link
Member Author

aisk commented Jan 26, 2021

@dmulter I think you are right, and really sorry for I did not make it right. Just open a new PR: #158 , can you help me review it?

aisk added a commit that referenced this pull request Jan 26, 2021
aisk added a commit that referenced this pull request Jan 26, 2021
aisk added a commit that referenced this pull request Jan 26, 2021
aisk added a commit that referenced this pull request Jan 26, 2021
aisk added a commit that referenced this pull request Jan 26, 2021
ethe added a commit that referenced this pull request Jan 27, 2021
Fix the path issue caused by #148
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.

Invalid HTTP URI format in http.py
3 participants