• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

albertito / gofer
98%
master: 98%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Repo Added 07 Oct 2022 02:37AM UTC
Files 18
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH main
branch: SELECT
CHANGE BRANCH
x
  • No branch selected
  • main
  • master
  • next

06 Jun 2025 09:48AM UTC coverage: 98.481%. Remained the same
19994569045

push

albertito
reqlog: Use "-" when HTTP.Request.Host is empty

Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip
the field in the logs.

A log line with Host value: `... HTTP/1.1 example.com GET ...`.

And with Host empty: `... HTTP/1.1  GET ...` (note the double spaces).

This makes the logs more difficult to read and parse.

To fix this, this patch makes gofer log `-` when the host is empty.

After this change, the a log line will look like:
`... HTTP/1.1 - GET ...` (note the `-` in the host field).

2205 of 2239 relevant lines covered (98.48%)

566.45 hits per line

Relevant lines Covered
Build:
Build:
2239 RELEVANT LINES 2205 COVERED LINES
566.45 HITS PER LINE
Source Files on master
  • Tree
  • List 18
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
19994569045 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 06 Dec 2025 09:34PM UTC albertito
98.48
19798167706 next nettrace: Use rand/v2, and provide better logging/printing functions push 30 Nov 2025 11:24AM UTC albertito
98.49
19789610385 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 29 Nov 2025 09:34PM UTC albertito
98.48
19601530438 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 22 Nov 2025 09:34PM UTC albertito
98.48
19395872176 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 15 Nov 2025 09:34PM UTC albertito
98.48
19198915718 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 08 Nov 2025 09:34PM UTC albertito
98.48
19002960671 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 01 Nov 2025 09:34PM UTC albertito
98.48
18808776021 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 25 Oct 2025 09:34PM UTC albertito
98.48
18621260649 main reqlog: Use "-" when HTTP.Request.Host is empty Today, we print HTTP.Request.Host as-is. So if it is empty, we just skip the field in the logs. A log line with Host value: `... HTTP/1.1 example.com GET ...`. And with Host empty: `... HTTP/1.1 ... push 18 Oct 2025 09:34PM UTC albertito
98.48
15367723827 main modules: Update dependencies, and minimum Go version is now 1.23.0 push 31 May 2025 09:32PM UTC albertito
98.0
See All Builds (211)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2025 Coveralls, Inc