Fixed a printf format error when compiling in 64bit mode.
git-svn-id: https://shellinabox.googlecode.com/svn/trunk@30 0da03de8-d603-11dd-86c2-0f8696b7b6f9
This commit is contained in:
parent
48a3768baa
commit
799169b020
1 changed files with 2 additions and 2 deletions
|
@ -1277,11 +1277,11 @@ void httpSendReply(struct HttpConnection *http, int code,
|
||||||
"HTTP/1.1 %d %s\r\n"
|
"HTTP/1.1 %d %s\r\n"
|
||||||
"%s"
|
"%s"
|
||||||
"Content-Type: text/html; charset=utf-8\r\n"
|
"Content-Type: text/html; charset=utf-8\r\n"
|
||||||
"Content-Length: %d\r\n"
|
"Content-Length: %ld\r\n"
|
||||||
"\r\n",
|
"\r\n",
|
||||||
code, msg,
|
code, msg,
|
||||||
code != 200 ? "Connection: close\r\n" : "",
|
code != 200 ? "Connection: close\r\n" : "",
|
||||||
strlen(body));
|
(long)strlen(body));
|
||||||
}
|
}
|
||||||
int isHead = !strcmp(http->method, "HEAD");
|
int isHead = !strcmp(http->method, "HEAD");
|
||||||
if (!isHead) {
|
if (!isHead) {
|
||||||
|
|
Loading…
Reference in a new issue