1
0
Fork 0
mirror of https://github.com/miniflux/v2.git synced 2025-08-11 17:51:01 +00:00

Add Server-Timing header to unread page

This commit is contained in:
Clément Joly 2020-12-18 23:08:17 +00:00 committed by GitHub
parent 2cf9bde1af
commit f88e93a0b9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 153 additions and 2 deletions

View file

@ -77,6 +77,8 @@ func (p *Parser) parseLines(lines []string) (err error) {
p.opts.logDateTime = parseBool(value, defaultLogDateTime)
case "DEBUG":
p.opts.debug = parseBool(value, defaultDebug)
case "SERVER_TIMING_HEADER":
p.opts.serverTimingHeader = parseBool(value, defaultTiming)
case "BASE_URL":
p.opts.baseURL, p.opts.rootURL, p.opts.basePath, err = parseBaseURL(value)
if err != nil {