git.samba.org
/
metze
/
samba
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
31f0e24
)
web_server: Create a string object for SERVER_PORT variable.
author
Jelmer Vernooij
<jelmer@samba.org>
Thu, 22 Nov 2012 00:46:56 +0000
(
00:46
+0000)
committer
Matthieu Patou
<mat@matws.net>
Thu, 22 Nov 2012 22:57:33 +0000
(14:57 -0800)
This matches the behaviour of other wsgi server implementations.
Reviewed-by: Matthieu Patou <mat@matws.net>
source4/web_server/wsgi.c
patch
|
blob
|
history
diff --git
a/source4/web_server/wsgi.c
b/source4/web_server/wsgi.c
index 3f8141c5e2090e923dfe5d95af79e8991cc75c97..4d2b36358b8663b4b27faa8b994e1b1e1a60e2aa 100644
(file)
--- a/
source4/web_server/wsgi.c
+++ b/
source4/web_server/wsgi.c
@@
-301,7
+301,7
@@
static PyObject *create_environ(bool tls, int content_length, struct http_header
}
PyDict_SetItemString(env, "SERVER_NAME", PyString_FromString(servername));
- PyDict_SetItemString(env, "SERVER_PORT", Py
Int_FromLong(
serverport));
+ PyDict_SetItemString(env, "SERVER_PORT", Py
String_FromFormat("%d",
serverport));
for (hdr = headers; hdr; hdr = hdr->next) {
char *name;
if (!strcasecmp(hdr->name, "Content-Type")) {