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

Send request data as str/bytes #88

Merged
merged 1 commit into from
Nov 22, 2017
Merged

Send request data as str/bytes #88

merged 1 commit into from
Nov 22, 2017

Conversation

vshlapakov
Copy link
Contributor

@vshlapakov vshlapakov commented Nov 14, 2017

A short fix to overcome urllib3/urllib3#717 related to large POST requests via SSL raising SSL3_WRITE_PENDING error.

@vshlapakov vshlapakov self-assigned this Nov 14, 2017
@codecov
Copy link

codecov bot commented Nov 14, 2017

Codecov Report

Merging #88 into master will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #88   +/-   ##
=======================================
  Coverage   93.26%   93.26%           
=======================================
  Files          28       28           
  Lines        1870     1870           
=======================================
  Hits         1744     1744           
  Misses        126      126
Impacted Files Coverage Δ
scrapinghub/hubstorage/resourcetype.py 97.25% <100%> (ø) ⬆️

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 dca8a49...3939113. Read the comment docs.

@@ -54,7 +54,7 @@ def _iter_lines(self, _path, **kwargs):
kwargs['url'] = urlpathjoin(self.url, _path)
kwargs.setdefault('auth', self.auth)
if 'jl' in kwargs:
kwargs['data'] = jlencode(kwargs.pop('jl'))
Copy link
Contributor

Choose a reason for hiding this comment

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

I think we need a comment here explaining why the .encode() is needed and what upstream bug it is preventing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

@dangra Good point, updated 👌

@dangra dangra merged commit 6a64481 into master Nov 22, 2017
@dangra dangra deleted the send-body-as-bytes branch November 22, 2017 14:32
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

2 participants