Comments (2)
After @davidism 's prompt in the original issue to also file an upstream Python issue (python/cpython#104139 (comment)), Python's urlib.parse
was improved with the itms-services:
url schema knowledge in Python 3.12.
The cpython comment thread also mentions a potentially more tightly scoped workaround for the "_invalid_iri" issue on older python versions:
if "itms-services" not in urllib.parse.uses_netloc:
urllib.parse.uses_netloc.append("itms-services")
Should we adopt this? Or otherwise rethink the current conditionals bypassing iri_to_uri(location_iri)
?
from werkzeug.
Yes, I like that solution, since it allows users to tell Python in general about any special scheme they need. Note that you won't see response.location
encoded in your example, that only happens at the last moment when converting the Response
to HTTP.
from werkzeug.
Related Issues (20)
- OSError: [WinError 10038] An operation was attempted on something that is not a socket HOT 2
- `FileStorage.name` should be the filename HOT 2
- Use of Python 2 `print` statement in quickstart docs
- Handle AssertionError for fkask-socketio HOT 2
- BaseWSGIServer: throw exception on bind failure rather than calling sys.exit() HOT 4
- TLS connection not properly closed HOT 1
- Inaccurate Content-Range header in for partial content responses. HOT 1
- Test failures with pytest-xprocess-1.0.1 HOT 4
- Uploading a file of a specific size causes the server to hang up HOT 1
- bad arg-parse in python versions >= (3, 10) HOT 2
- XMPP: Post to PubSub HOT 5
- Several issues with CacheControl types HOT 1
- `TypeConversionDict.pop` could pop with type HOT 1
- Upgrade of Werkzeug from 2.2.3 to 2.3.0 resulting in api failure
- TLS validation in local dev does not work HOT 1
- PyCharm debugger fails within Werkzeug HOT 1
- Redirecting to ipv6 ip address tries to parse last part as port HOT 1
- Slow performance parsing certain `Content-Type: application/x-www-form-urlencoded` headers HOT 1
- replace pytest-xprocess HOT 1
- ProfilerMiddleware raises `ValueError: Another profiling tool is already active`
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from werkzeug.