byxorna / nycmesh-tool

nycmesh-tool CLI
Apache License 2.0
1 stars 0 forks source link

[WIP] User-Agent setting for UISP http client #9

Open byxorna opened 2 years ago

byxorna commented 2 years ago

I am trying to make goswagger's generated UISP client use a specific User-Agent (to help identify which build is hitting UISP via access logs). Unfortunately, so far I have been unable to figure out which is the correct application of replacing the transport of the runtime with a custom http.RoundTripper that should (but for some reason does not) set the header on every request.

This PR needs love ❤️