GithubHelp home page GithubHelp logo

Comments (4)

april avatar april commented on July 21, 2024 1

This code will be fixed in the code push that allows scans without any backend. :)

from http-observatory.

april avatar april commented on July 21, 2024

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.

jarondl avatar jarondl commented on July 21, 2024

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.

april avatar april commented on July 21, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.