File tree 2 files changed +3
-4
lines changed 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -17,10 +17,9 @@ import (
17
17
18
18
"github.com/miniflux/miniflux/logger"
19
19
"github.com/miniflux/miniflux/timer"
20
+ "github.com/miniflux/miniflux/version"
20
21
)
21
22
22
- // Note: Some websites have a user agent filter.
23
- const userAgent = "Mozilla/5.0 (like Gecko, like Safari, like Chrome) - Miniflux <https://miniflux.net/>"
24
23
const requestTimeout = 300
25
24
const maxBodySize = 1024 * 1024 * 15
26
25
@@ -136,7 +135,7 @@ func (c *Client) buildClient() http.Client {
136
135
137
136
func (c * Client ) buildHeaders () http.Header {
138
137
headers := make (http.Header )
139
- headers .Add ("User-Agent" , userAgent )
138
+ headers .Add ("User-Agent" , "Mozilla/5.0 (compatible; Miniflux/" + version . Version + "; +https://miniflux.net)" )
140
139
headers .Add ("Accept" , "*/*" )
141
140
142
141
if c .etagHeader != "" {
Original file line number Diff line number Diff line change 5
5
package version
6
6
7
7
// Version of the application (generated with "make build")
8
- var Version = "undefined "
8
+ var Version = "2.0.x-dev "
9
9
10
10
// BuildDate is generated with "make build"
11
11
var BuildDate = "undefined"
You can’t perform that action at this time.
0 commit comments