-
-
Notifications
You must be signed in to change notification settings - Fork 2k
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
URL with # in response #1314
Comments
This is intended behavior. |
have I simple way how to change it back? |
No response contains real URL sent to server. |
I don't agree with you |
For my library I'm using this code: class CustomClientResponse(aiohttp.ClientResponse):
async def start(self, connection, read_until_eof=False):
await super().start(connection, read_until_eof)
headers = CIMultiDict(self.headers)
location = headers.get(hdrs.LOCATION, None)
if location is not None:
headers[hdrs.LOCATION] = location.replace('#', '?')
self.headers = CIMultiDictProxy(headers)
self.raw_headers = tuple(headers.items())
return self |
Please correct me if I'm wrong: VK API does rely on fragment data and there is no way to do it via current aiohttp client API. |
я не могу понять эту фразу на английском, но полагаю, что вы поймете меня на русском |
I think @asvetlov intended to say "VK API does rely on fragment data" ("VK API зависит от передачи фрагмента (части после #) браузером серверу"). @Fahreeve I believe you missed somewhere escaping of
|
@rutsky https://github.com/Fahreeve/aiovk/blob/master/aiovk/sessions.py#L99 it don't help you |
fixed in master |
Hello! I have same problem with VK api. version 1.3.0 - I dont see fragment in result. Checked hack from @Fahreeve - it works. |
@asvetlov we need to fix this sh.. |
is this still a problem? do we have any idea what needs to be fixed? |
Close as outdated |
@asvetlov you should really consider enabling stale bot integration: https://github.com/apps/stale |
We can manage our all 100 open issues without bots. |
@asvetlov that bot supports ignoring issues marked with certain labels :) It's pretty configurable |
You can try to setup it and let's look how things are going. |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a [new issue] for related bugs. |
Long story short
url address of original response looks like
http://someurl.bla/test.html#access_token=blabla&ab=1
but in aiohttpresponse.url
I can see onlyhttp://someurl.bla/test.html
Expected behaviour
I want to have a full address in
response.url
Actual behaviour
response.url
has only this part:http://someurl.bla/test.html
The text was updated successfully, but these errors were encountered: