~cjwatson/lazr.restful:main

Last commit made on 2023-10-17
Get this branch:
git clone -b main https://git.launchpad.net/~cjwatson/lazr.restful
Only Colin Watson can upload to this branch. If you are Colin Watson please log in for upload directions.

Branch merges

Branch information

Name:
main
Repository:
lp:~cjwatson/lazr.restful

Recent commits

10efe47... by Colin Watson

Don't send superfluous HTTP headers with 304 responses

RFC 2616 section 10.3.5 and RFC 7232 section 4.1 are both clear that 304
responses SHOULD NOT (or in some cases MUST NOT) include headers other
than a short list relevant to caching. In particular, sending
`Content-Length: 0` is actively harmful because it can end up
instructing caches to replace that header in their cached 200 response,
resulting in incorrect empty cached responses.

I wasn't able to get rid of the `X-Powered-By:` header added by
`zope.publisher`, but that's a fixed string and doesn't really matter.

LP: #2039251

95139c1... by Guruprasad

Set the language to "en" to address the Sphinx warning

dc2d579... by Guruprasad

Add a .readthedocs.yaml configuration file

Also update tox.ini to build docs using Python 3.11

cd81ba1... by Colin Watson

Remove all uses of IGNORE_EXCEPTION_MODULE_IN_PYTHON2

This is no longer needed now that we require Python 3.

8c56af9... by Colin Watson

Back to development

a39162c... by Colin Watson

Release lazr.restful 2.0.1

ae24b1f... by Colin Watson

Fix regression in pretty-printing lists of OrderedDicts

Launchpad's test suite (in
`lib/lp/registry/stories/webservice/xx-project-registry.rst`) relies on
lists of `OrderedDict` objects being pretty-printed as if they were
ordinary dicts; the change in
https://code.launchpad.net/~cjwatson/lazr.restful/+git/lazr.restful/+merge/413872
regressed this. Restore the previous behaviour, and ensure we have a
local test for it.

53c47ab... by Colin Watson

Remove simplejson dependency

The only things that `simplejson` still gave us compared with the
standard library's `json` were more consistently accepting both bytes
and text input across all supported Python versions, and
`simplejson.encoder.JSONEncoderForHTML`. It isn't really worth a whole
dependency just for those.

27df283... by Andrey Fedoseev

Release lazr.restful 2.0.0.

a428bf2... by Andrey Fedoseev

The collection marshallers can now unmarshall None

The collection marshallers (list, set, tuple) will now correctly
unmarshall `None` as `None`.