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

Allow configuring url escaping on Request objects. #3255

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

dyeray
Copy link

@dyeray dyeray commented May 10, 2018

Provide a boolean parameter "escape_url" on the Request constructor that indicates whether the url will be escaped or left as it is. This parameter is saved on the request object so a new request object can be built from the previous one using the replace method.

Fixes #833

@dyeray
Copy link
Author

dyeray commented May 10, 2018

Tested on py27 and py36 (twisted 17.9.0).

@whalebot-helmsman
Copy link
Contributor

@dyeray Problem with unit-tests was fixed in master. Can you merge master to this PR?

@codecov
Copy link

codecov bot commented May 18, 2018

Codecov Report

Merging #3255 into master will increase coverage by 0.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #3255      +/-   ##
==========================================
+ Coverage   82.12%   82.13%   +0.01%     
==========================================
  Files         228      228              
  Lines        9599     9606       +7     
  Branches     1385     1385              
==========================================
+ Hits         7883     7890       +7     
  Misses       1457     1457              
  Partials      259      259
Impacted Files Coverage Δ
scrapy/http/request/__init__.py 100% <100%> (ø) ⬆️

@dyeray
Copy link
Author

dyeray commented May 18, 2018

Done.

@dyeray
Copy link
Author

dyeray commented May 18, 2018

Implements #833

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.

Prevent URL encoding option
2 participants