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

Add the user-defined UA, which can be changed by yourself #869

Open
beibeio opened this issue Nov 13, 2020 · 1 comment
Open

Add the user-defined UA, which can be changed by yourself #869

beibeio opened this issue Nov 13, 2020 · 1 comment
Labels

Comments

@beibeio
Copy link

beibeio commented Nov 13, 2020

Before you submit the issue, please provide us following information:

  • Your operating system
  • How did you install Goby
  • Goby version
  • The value of $GOBY_ROOT
  • Error messages

If you have trouble building Goby on your machine, please check $GOPATH and $GOROOT

@st0012
Copy link
Member

st0012 commented Nov 22, 2020

I assume you're talking about the HTTP::Request class? I think you can already do it like

req = Net::HTTP::Request.new
req.set_header("User-Agent", "Your UA")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants