aditya118 / mongoose

Automatically exported from code.google.com/p/mongoose
MIT License
0 stars 0 forks source link

Python binding missing a field from mg_request_info #237

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
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

GoogleCodeExporter commented 8 years ago
Submitted 
http://code.google.com/p/mongoose/source/detail?r=7d1dd26a81be96bec7d95b28848389
810dc3f3c8, thank you

Original comment by valenok on 16 Mar 2011 at 9:36