(no bug, doc only) Fixed anchors in the middleware documentation.

Conflicts:
	docs/middleware.rst