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

optimizely / agent / 1438
87%

Build:
DEFAULT BRANCH: master
Ran 26 Aug 2020 09:00PM UTC
Jobs 1
Files 28
Run time 3s
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

26 Aug 2020 08:58PM UTC coverage: 86.802% (-0.09%) from 86.891%
1438

push

travis-ci-com

web-flow
fix: Allowed hosts middleware does not check port (#271)

Summary:

This fixes an issue with the allowed hosts middleware that could prevent legitimate requests from being served.

The middleware extracts a host value from requests to compare agains the allow-list configured in server.allowedHosts. These request host values can take two possible forms:

1. Just a host (i.e. example.com), or
2. A host + port combination, separated by : (example.com:8080).

Previously, when the request host value did contain a port (the 2nd form), and that port differed from the server.port configuration value, the middleware would reject the request.

With this change, only the host is used for comparison against the configured allow-list. If the port is present, it is ignored.

Test Plan:

- Updated unit tests
- Manually tested

1539 of 1773 relevant lines covered (86.8%)

4.78 hits per line

Jobs
ID Job ID Ran Files Coverage
2 1438.2 (GIMME_GO_VERSION=1.13.x GIMME_OS=linux GIMME_ARCH=amd64) 26 Aug 2020 09:00PM UTC 0
86.8
Travis Job 1438.2
Source Files on build 1438
Detailed source file information is not available for this build.
  • Back to Repo
  • Build #1438
  • 4d156800 on github
  • Prev Build on master (#1433)
  • Next Build on master (#1442)
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

© 2026 Coveralls, Inc