-
Notifications
You must be signed in to change notification settings - Fork 32
Multiple request.headers handling #84
Comments
Presumably you are doing something with a local handler? Is there a code example you can point us at? And are you using the API as defined in https://wptserve.readthedocs.io/en/latest/handlers.html#python-handlers ? Oh, and are you doing this by defining an additional "route" for wptserve? |
This line is returning a single element list--even if two Prefer headers come in (I've also tested it with Link, etc...with the same result...just one item in the list): I am using this within a Python Handler. And the route is defined here--and it's super duper basic: |
Huh. Not sure I understand that route handler completely... are routes resolved relative to the base or the python file that gets executed when they are created? Also are you setting up your own endpoint on the wptserver, or just adding some routes and filehandlers to the existing server that is started when ./serve is executed in the top level directory? |
@halindrome so...I missed the I'll look into |
Here's a Gist with a simple Thoughts? |
So...it looks as if Python's When that object is passed to It is possible to work around this by accessing the It looks like someone meant this to work, however, judging by the I'll keep digging into this...I feel like I must be missing something super obvious... help wanted. 😁 |
I don't think you are missing anything obvious. :) It may well be the case that forking |
Yeah.... I will work with @BigBlueHat on this. It is blocking testing of Annotation Protocol, which just entered CR phase. |
See also web-platform-tests/wpt#2612 |
Here's the fix: #87 |
This issue has been moved to web-platform-tests/wpt#8367; please continue all discussion there. |
There seems to be code to handle multiple request headers, but when I attempt sending them into a
wptserve.handlers.handler
I only get the last one sent in...despiterequest.headers
being a list.I'm still digging through the code, but if someone has a hunch what might be up, I'm eager for pointers. 😄
The text was updated successfully, but these errors were encountered: