Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
M
mongoose
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
esp
mongoose
Commits
4619c1a7
Commit
4619c1a7
authored
Mar 16, 2011
by
valenok
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixing
http://code.google.com/p/mongoose/issues/detail?id=237
parent
ec15f2da
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
mongoose.py
bindings/python/mongoose.py
+3
-2
No files found.
bindings/python/mongoose.py
View file @
4619c1a7
...
...
@@ -57,6 +57,7 @@ class mg_header(ctypes.Structure):
class
mg_request_info
(
ctypes
.
Structure
):
"""A wrapper for struct mg_request_info."""
_fields_
=
[
(
'user_data'
,
ctypes
.
c_char_p
),
(
'request_method'
,
ctypes
.
c_char_p
),
(
'uri'
,
ctypes
.
c_char_p
),
(
'http_version'
,
ctypes
.
c_char_p
),
...
...
@@ -91,7 +92,7 @@ class Connection(object):
return
ctypes
.
c_char_p
(
val
)
.
value
def
get_var
(
self
,
data
,
name
):
size
=
len
(
data
)
size
=
data
and
len
(
data
)
or
0
buf
=
ctypes
.
create_string_buffer
(
size
)
n
=
self
.
m
.
dll
.
mg_get_var
(
data
,
size
,
name
,
buf
,
size
)
return
n
>=
0
and
buf
or
None
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment