Update user agent #5
|
@ -41,7 +41,7 @@ type SubReddit struct {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RedditConfig) UserAgent() string {
|
func (r *RedditConfig) UserAgent() string {
|
||||||
return fmt.Sprintf("%s/%s by /u/%s", r.AppName, r.Version, r.Username)
|
return fmt.Sprintf("go:%s:%s (by /u/%s)", r.AppName, r.Version, r.Username)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (r *RedditConfig) SubRedditNames() []string {
|
func (r *RedditConfig) SubRedditNames() []string {
|
||||||
|
|
Loading…
Reference in New Issue