google-code-export / dojango

Automatically exported from code.google.com/p/dojango
Other
1 stars 0 forks source link

@expect_post_request should raise HttpResponseNotAllowed #66

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add @expect_post_request to a view
2. Make GET reqest to that view

What is the expected output? What do you see instead?
I get HTTP ERROR 500, but it should be 405.

What version of the product are you using? On what operating system?
trunk.

Please provide any additional information below.

Raising HttpResponseNotAllowed(['POST']) instead of plain Exception('...') will 
solve the issue.

Original issue reported on code.google.com by zim...@gmail.com on 21 Jan 2011 at 11:57

GoogleCodeExporter commented 9 years ago
Fixed within r281. zimnyx: thanks for reporting

Original comment by tobias.k...@googlemail.com on 7 Feb 2011 at 9:23