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

mushorg / snare / 382
90%

Build:
DEFAULT BRANCH: master
Ran 14 Mar 2020 11:09PM UTC
Jobs 2
Files 11
Run time 13s
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
382

push

travis-ci

web-flow
Clone and serve headers (#241)

* Add server headers when cloning/serving

Cloner is now storing server headers in meta.json (except some ignored
ones). When serving a request, headers are overwritten if necessary.

* Remove default server header

Rely on the cloned one, if existing. If not, it can always be
overwritten by using the --server-header cmd line switch.

* Update list of ignored headers

The following are the default aiohttp headers:

Content-Type: text/plain; charset=utf-8
Content-Length: 12
Date: Wed, 26 Feb 2020 16:28:20 GMT
Server: Python/3.7 aiohttp/3.4.4

We don't want any overlap with those, except for "Server" and
"Content-Type". Also we should avoid messing with HTTP/1.1 "Connection",
as well as "Date" and a few others related to caching.

This list will most likely need updating in the future.

* Fix minor formatting/PEP-8 issues

* Remove content_type and use Content-Type header

* Update snare middleware to use new headers

* Fix line length issues

pycodestyle complaining...

* Change middleware to be backward-compatible

Old meta doesn't contain headers, so default to no headers.

* Change Tanner handler to be backward-compatible

Again, if no headers we should default to empty list.

* Improve handling of {'Content-Type': None}

* Fix check_meta_file to allow new headers

Co-authored-by: Evgeniia <vremendm@gmail.com>

53 of 53 new or added lines in 5 files covered. (100.0%)

364 of 567 relevant lines covered (64.2%)

1.28 hits per line

Jobs
ID Job ID Ran Files Coverage
1 382.1 14 Mar 2020 11:09PM UTC 0
64.2
Travis Job 382.1
2 382.2 14 Mar 2020 11:09PM UTC 0
64.2
Travis Job 382.2
Source Files on build 382
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #382
  • 098298da on github
  • Prev Build on master (#380)
  • Next Build on master (#385)
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