Skip to content

Commit

Permalink
Merge pull request #3 from markusstoll/darkv_adaptor_long_response
Browse files Browse the repository at this point in the history
Fixes for CGI und IIS
  • Loading branch information
darkv committed Apr 27, 2015
2 parents e6bf861 + ff65917 commit cbae1c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Utilities/Adaptors/CGI/WebObjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -147,7 +147,7 @@ static void sendResponse(HTTPResponse *resp)
#ifndef PROFILE
/* resp->content_valid will be 0 for HEAD requests and empty responses */
if (resp->content_valid) {
int count;
long count;

while (resp->content_read < resp->content_length &&
(resp->flags & RESP_LENGTH_INVALID) != RESP_LENGTH_INVALID) {
Expand Down
4 changes: 2 additions & 2 deletions Utilities/Adaptors/IIS/WebObjects.c
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ static void sendResponse(EXTENSION_CONTROL_BLOCK *p, HTTPResponse *resp)

/* resp->content_valid will be 0 for HEAD requests and empty responses */
if (resp->content_valid) {
int count;
long count;
while (resp->content_read < resp->content_length &&
(resp->flags & RESP_LENGTH_INVALID) != RESP_LENGTH_INVALID &&
browserStatus == 0) {
Expand Down Expand Up @@ -567,7 +567,7 @@ static int readContentData(HTTPRequest *req, void *dataBuffer, int dataSize, int
length = (char *)WOMALLOC(32);
if (length)
{
sprintf(length,"%d",req->content_length);
sprintf(length,"%lu",req->content_length);
req_addHeader(req, CONTENT_LENGTH, length, STR_FREEVALUE);
}
if (p->lpszContentType != NULL)
Expand Down

0 comments on commit cbae1c0

Please sign in to comment.