web-platform-tests/wpt

Creation of a handler which doesn't set a string as response content hangs the server

Open

#8.368 geöffnet am 20. Nov. 2017

Auf GitHub ansehen
 (3 Kommentare) (0 Reaktionen) (0 zugewiesene Personen)HTML (2.898 Forks)batch import
good first issueinfrapriority:backlogwptserve

Repository-Metriken

Stars
 (4.581 Stars)
PR-Merge-Metriken
 (Durchschn. Merge 5T 23h) (682 gemergte PRs in 30 T)

Beschreibung

Originally posted as https://github.com/w3c/wptserve/issues/105 by @whimboo on 28 Oct 2016, 12:22 UTC:

The following handler will cause the server to hang while delivering the page content:

  def handler(request, response):
        response.content = 1
        return ()

This happens because a non-string value gets set as the content.

Contributor Guide