web-platform-tests/wpt

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

Open

#8368 aperta il 20 nov 2017

Vedi su GitHub
 (3 commenti) (0 reazioni) (0 assegnatari)HTML (2898 fork)batch import
good first issueinfrapriority:backlogwptserve

Metriche repository

Star
 (4581 star)
Metriche merge PR
 (Merge medio 5g 23h) (682 PR mergiate in 30 g)

Descrizione

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.

Guida contributor