Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
.. image:: https://img.shields.io/pypi/v/django-brotli.svg :target: https://pypi.python.org/pypi/django-brotli :alt: PyPi
.. image:: https://img.shields.io/badge/license-MIT-blue.svg :target: https://pypi.python.org/pypi/django-brotli/ :alt: MIT
.. image:: https://img.shields.io/travis/illagrenan/django-brotli.svg :target: https://travis-ci.org/illagrenan/django-brotli :alt: TravisCI
.. image:: https://img.shields.io/coveralls/illagrenan/django-brotli.svg :target: https://coveralls.io/github/illagrenan/django-brotli?branch=master :alt: Coverage
.. image:: https://pyup.io/repos/github/illagrenan/django-brotli/shield.svg :target: https://pyup.io/repos/github/illagrenan/django-brotli/ :alt: Updates
.. image:: https://img.shields.io/pypi/implementation/django-brotli.svg :target: https://pypi.python.org/pypi/django_brotli/ :alt: Supported Python implementations
.. image:: https://img.shields.io/pypi/pyversions/django-brotli.svg :target: https://pypi.python.org/pypi/django_brotli/ :alt: Supported Python versions
This project consists of BrotliMiddleware
which works the same as Django GZipMiddleware
(Docs
/Source
). BrotliMiddleware
will compress content of HTTP response using brotli algorithm (Brotli Compressed Data Format is defined in RFC 7932
_).
In November 2016 is brotli supported by Firefox, Chrome, Android Browser and Opera (detailed stats on caniuse
_). Brotli is applied only when client has sent Accept-Encoding
header containing br
.
.. _Docs
: https://docs.djangoproject.com/en/dev/ref/middleware/#module-django.middleware.gzip
.. _Source
: https://github.com/django/django/blob/master/django/middleware/gzip.py#L10-L52
.. _RFC 7932
: https://www.ietf.org/rfc/rfc7932.txt
.. _caniuse
: http://caniuse.com/#search=brotli
This software is in alpha version and should not be used in production.
3.5
, 3.6
and 3.7
.1.11.x
(LTS), 2.0.x
and 2.1.x
(LTS)... code:: shell
pip install --upgrade django-brotli
Add django_brotli.middleware.BrotliMiddleware
to MIDDLEWARE
:
.. code:: python
MIDDLEWARE = [
'django_brotli.middleware.BrotliMiddleware',
# ...
]
Brotli on Wikipedia (https://en.wikipedia.org/wiki/Brotli) <https://en.wikipedia.org/wiki/Brotli>
_Brotli compression format repository by Google (https://github.com/google/brotli) <https://github.com/google/brotli>
_git clone ...
)pip install --upgrade -r requirements.txt
pytest
The MIT License (MIT)
Copyright (c) 2016–2019 Vašek Dohnal (@illagrenan)
FAQs
Middleware that compresses response using brotli algorithm.
We found that django-brotli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.