Download Install Tutorial Docs FAQ Tools WikiLicense Team IRC Planet Involvement Shop Book

Changeset 1606

Show
Ignore:
Timestamp:
01/31/07 18:15:47
Author:
fumanchu
Message:

3.0 test for #650 (PUT request with empty body/params ignored).

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/cherrypy/test/test_core.py

    r1534 r1606  
    898898        self.assertBody(b) 
    899899         
     900        # Request a PUT method with an empty body. 
     901        # See http://www.cherrypy.org/ticket/650. 
     902        h = [("Content-Type", "text/plain"), 
     903             ("Content-Length", "0")] 
     904        self.getPage("/method/request_body", headers=h, method="PUT", body="") 
     905        self.assertBody("") 
     906         
    900907        # Request a custom method with a request body 
    901908        b = ('<?xml version="1.0" encoding="utf-8" ?>\n\n' 

Hosted by WebFaction

Log in as guest/cpguest to create tickets