-
-
Notifications
You must be signed in to change notification settings - Fork 3k
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
fix: User-Agent sent to IPNI HTTP routers #9550
Conversation
296869b
to
28b92f0
Compare
Agreed we should have this - good catch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM after updating dependency.
ipfs block stat "$WANT_CID" & | ||
test_wait_output_n_lines_60_sec http_requests 3 && | ||
test_should_contain "GET /routing/v1/providers/$WANT_CID" http_requests | ||
' | ||
|
||
test_expect_success 'expect HTTP request User-Agent to match Kubo version' ' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be nice to add this using the new sharness go framework.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, extracted to #9562 so test refactor does not block 0.18
c561c4f
to
6030db6
Compare
e5dcd4b
to
9088989
Compare
9088989
to
da625cd
Compare
This PR sets correct
User-Agent
header sent to remote HTTP routers / IPNIs (like cid.contact):See ipfs/boxo#17 and ipfs/boxo#31
TODO
ipfs id -f "<aver>\n"