[Checkins] [zopefoundation/zope.app.wsgi] f2cfd0: Extract FakeResponse.server_protocol attribute

Marius Gedminas noreply at github.com
Thu Jun 6 16:36:05 CEST 2019


  Branch: refs/heads/httpcaller-compat
  Home:   https://github.com/zopefoundation/zope.app.wsgi
  Commit: f2cfd0d0cc2190002002a2f901aa656b16b01b73
      https://github.com/zopefoundation/zope.app.wsgi/commit/f2cfd0d0cc2190002002a2f901aa656b16b01b73
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2019-06-06 (Thu, 06 Jun 2019)

  Changed paths:
    M src/zope/app/wsgi/testlayer.py

  Log Message:
  -----------
  Extract FakeResponse.server_protocol attribute

zope.app.testing.functional.http() used to respond with "HTTP/1.1 ...",
zope.app.wsgi.testlayer.http() hardcodes the server protocol as
"HTTP/1.0 ...".

This is annoying when I'm trying to port old large test suites.  Let's
at least make this easier to customize by subclassing and overriding a
single attribute, without having to rewrite the entire method.




More information about the checkins mailing list