What steps will reproduce the problem?
1. Compile current hg head on Mac (make mac)
2. Copy _mongoose.so to bindings/python
3. cd bindings/python
4. Run example.py
5. Visit http://localhost:8080/form in web browser
What is the expected output? What do you see instead?
A form should be displayed, but instead it shows "HTTP error 0"
What version of the product are you using? On what operating system?
Latest mercurial head on 2011/03/15, Mac OS X 10.6.6
Please provide any additional information below.
Problem seems to be fixed by adding 'user_data' to the mg_request_info class in
mongoose.py, i.e.:
change
-----
_fields_ = [
('request_method', ctypes.c_char_p),
-----
to
-----
_fields_ = [
('user_data', ctypes.c_char_p),
('request_method', ctypes.c_char_p),
-----
Original issue reported on code.google.com by mrme...@gmail.com on 15 Mar 2011 at 10:17
Original issue reported on code.google.com by
mrme...@gmail.com
on 15 Mar 2011 at 10:17