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

medleyjs / serve-static / 7
100%

Build:
DEFAULT BRANCH: master
Ran 28 Mar 2018 08:25PM UTC
Jobs 3
Files 1
Run time 11s
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

pending completion
7

push

travis-ci

nwoltman
Disable send's directory redirect feature

It doesn't work well enough with prefixed routes due to Medley's routing. It's easier just to disable it entirely and consistently return a 404 for requests with a URL that doesn't end in a '/'.

Future Note:
The reason it doesn't work well is that the Medley app may or may not be using the 'strictRouting' option. To properly configure the serve-static plugin, the plugin would need to know the value of this option (so the app would need to expose it). Then serve-static would need to define different routes depending on the value of the option and pass the right pathname to the send module. It is doable, but would require several if-else statements and a bunch more tests.

14 of 14 branches covered (100.0%)

Branch coverage included in aggregate %.

24 of 24 relevant lines covered (100.0%)

36.63 hits per line

Jobs
ID Job ID Ran Files Coverage
1 7.1 28 Mar 2018 08:25PM UTC 0
100.0
Travis Job 7.1
2 7.2 28 Mar 2018 08:25PM UTC 0
100.0
Travis Job 7.2
3 7.3 28 Mar 2018 08:25PM UTC 0
100.0
Travis Job 7.3
Source Files on build 7
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #7
  • 79741c8f on github
  • Prev Build on master (#6)
  • Next Build on master (#8)
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