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

Inconstant user-agent #123

Open
fufroma opened this issue Jun 2, 2024 · 4 comments
Open

Inconstant user-agent #123

fufroma opened this issue Jun 2, 2024 · 4 comments

Comments

@fufroma
Copy link

fufroma commented Jun 2, 2024

User-agent is inconstant:

REDACTED_IP - - [02/Jun/2024:14:58:21 +0200] "GET /server/json.server.php?action=ping&auth=redacted HTTP/1.1" 200 4566 "-" "PowerAmpache2-1.00-58-free"
REDACTED_IP - - [02/Jun/2024:14:58:23 +0200] "GET /image.php?object_id=2188&object_type=album HTTP/1.1" 200 32343 "-" "okhttp/5.0.0-alpha.9"
REDACTED_IP - - [02/Jun/2024:14:58:23 +0200] "GET /image.php?object_id=9644&object_type=album HTTP/1.1" 200 33910 "-" "okhttp/5.0.0-alpha.9"
REDACTED_IP - - [02/Jun/2024:14:58:23 +0200] "GET /image.php?object_id=5296&object_type=album HTTP/1.1" 200 108955 "-" "okhttp/5.0.0-alpha.9"
@icefields
Copy link
Owner

User-agent is inconstant:

I use a library called Coil to download images, it's one of the most standard libraries for android for Jetpack Compose. I'm not sure I can change the user agent for that, but I will look into it.

@fufroma
Copy link
Author

fufroma commented Jun 3, 2024

https://github.com/coil-kt/coil/blob/main/docs/recipes.md#headers

Look like you have to set manually the User-Agent header

@icefields
Copy link
Owner

yes, I'm already looking into the Interceptor. Probably the patch will be in the next-next release, because I was alredy planning on making a release this evening. Unless I have time to add it today. I'll keep you posted

@fufroma
Copy link
Author

fufroma commented Jun 17, 2024

okhttp/5.0.0-alpha.9 still showing in PowerAmpache2-1.00-60-free

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

No branches or pull requests

2 participants