Live video on the AT Protocol
79
fork

Configure Feed

Select the types of activity you want to include in your feed.

at eli/fix-gitlab 21 lines 418 B view raw
1package aqhttp 2 3import "net/http" 4 5var Client http.Client 6var UserAgent string = "streamplace/unknown" 7 8type AddHeaderTransport struct { 9 T http.RoundTripper 10} 11 12func (adt *AddHeaderTransport) RoundTrip(req *http.Request) (*http.Response, error) { 13 req.Header.Add("User-Agent", UserAgent) 14 return adt.T.RoundTrip(req) 15} 16 17func init() { 18 Client = http.Client{ 19 Transport: &AddHeaderTransport{T: &http.Transport{}}, 20 } 21}