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

[GOAL2-781] Add user-agent to all outgoing http requests #160

Merged
merged 10 commits into from Jul 18, 2019

Conversation

@tsachiherman
Copy link
Contributor

tsachiherman commented Jul 15, 2019

Summary

Replace the default go user-agent with custom user agent.

Test Plan

Use a unit test to verify functionality; use WireShark to examine network traffic content.

Examples

typical gossip request looks like the following:

GET /v1/mainnet-v1.0/gossip HTTP/1.1
Host: r-mt.algorand-mainnet.network:4160
User-Agent: algod/1.0 (dev; commit=44758ec7; 41620) darwin(amd64)
Connection: Upgrade
Sec-WebSocket-Key: vUcLjw9UAGpQCV+GQYQydA==
Sec-WebSocket-Version: 13
Upgrade: websocket
X-Algorand-Instancename: 
X-Algorand-Location: http:
X-Algorand-Noderandom: QbX3tqBuqlRBWw==
X-Algorand-Telid: 
X-Algorand-Version: 1

typical block request looks like the following:

GET /v1/mainnet-v1.0/block/caoo HTTP/1.1
Host: r-zr.algorand-mainnet.network:4160
User-Agent: algod/1.0 (dev; commit=44758ec7; 41620) darwin(amd64)
Accept-Encoding: gzip
tsachiherman added 10 commits Jun 17, 2019
merge from master
merge
merge
merge
Changetemplate (#76)
merge
merge
merge
merge
@tsachiherman tsachiherman changed the title Tsachi/goal2 781 [GOAL2-781] Add user-agent to all outgoing http requests Jul 16, 2019
@Vervious Vervious merged commit 507306b into algorand:master Jul 18, 2019
2 checks passed
2 checks passed
Travis CI - Pull Request Build Passed
Details
license/cla Contributor License Agreement is signed.
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.