Product
Introducing License Enforcement in Socket
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
This package provides WSGI middleware for injecting the markup required to use Google Analytics into web pages.
Please see docs/index.rst for detailed documentation.
Replaced urchin javascript with new async tracking code. See:
http://www.google.com/support/googleanalytics/bin/answer.py?answer=174090
Note that the script is now inserted at the end of the tag.
Added bypass for HEAD requests. This is a workaround for an assertion in webob.Response that doesn't let you set the body on a response if the request method is 'HEAD'. This behavior on the part of webob is actually bogus, as outlined here:
http://blog.dscpl.com.au/2009/10/wsgi-issues-with-http-head-requests.html
The key issue here is that as long as anything in the WSGI stack tries to special case 'HEAD' requests, we can end up with responses with headers which differ depending on whether the request method is 'GET' or 'HEAD'. In this specific example, by bypassing the urchin processing in the event of a HEAD request, we wind up with a Content-Length header for HEAD that doesn't include the extra bytes for the inserted urchin code that we would get with a GET request. This is, by definition of the standards, wrong, and yet unavoidable as long as webob is in our stack.
For now, we can hold our noses and know that probably nothing's going to really break because of this discrepency, but we can maybe try to convince the webob crowd to drop conditional processing for HEAD requests.
FAQs
WSGI middleware for Google analytics
We found that repoze.urchin demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 2 open source maintainers 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.
Product
Ensure open-source compliance with Socket’s License Enforcement Beta. Set up your License Policy and secure your software!
Product
We're launching a new set of license analysis and compliance features for analyzing, managing, and complying with licenses across a range of supported languages and ecosystems.
Product
We're excited to introduce Socket Optimize, a powerful CLI command to secure open source dependencies with tested, optimized package overrides.