Comments (4)
This code will be fixed in the code push that allows scans without any backend. :)
from http-observatory.
row.get('public_headers', {})
will return None
and not {}
, which is what I need, because the value is actually NULL (None).
We actually use these columns inside Mozilla quite a bit (for testing sites that need sessions and the like), but they are currently not exposed because I haven't had the time to think of a safe way to do it.
from http-observatory.
You are right about the row.get
of-course, I haven't considered the actual None
value.
If these columns are in use internally, then the title of this bug is wrong, but I still think that they way this code handles an empty DB result is wrong. I guess it should raise an error. Because currently it returns {}
, while the retriever expects headers
and cookies
to exist.
In the DB-less scenario this code should never have been called (#157), so that's not an issue.
from http-observatory.
Oh hey, this was fixed a while back by moving it into scan() instead of being in retrieve_all().
from http-observatory.
Related Issues (20)
- hsts-preloaded not taken into account HOT 7
- Not Working for localhost website HOT 2
- Content Security Policy (CSP) implemented unsafely HOT 1
- Update Observatory's user agent HOT 3
- Don't recommend "Deny by default" when prefetch-src is experimental
- Use "raw" headers when parsing CSP
- Allow multiple headers when parsing CSP HOT 7
- Can't run it on ARM Mac HOT 2
- FAQ links to non-existent site (htbridge.com/ssl) HOT 1
- database-down HOT 3
- .
- Installation Error (Error in anyjson package.) HOT 1
- CSP in <meta> is not analyzed when sent together with CSP in header HOT 2
- mozilla
- Blank http-equiv causes CSP test to fail with 'csp-header-invalid'
- requires.io is gone HOT 1
- Docker Compose up - not working due to old version of python HOT 1
- Set-cookie: HttpOnly flag seems to misinterpreted by Observatory checks
- Problematic advice regarding cookies with HSTS without secure flag
- Error: HTTP Observatory is down HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from http-observatory.