libupnp/upnp
Chandra Penke 575e5fc196 SUMMARY: Minor change in comment for SetMaxContentLenght in upnp.h
This is a follow up from issue 6 in tracker id 3056713: calling UpnpSetMaxContentLength() by passing '0' disables the content length checking. This is useful for developing some prototype applications that deal with a lot of XML/SOAP data, and for debugging.

The corresponding c file change is already in the pupnp tree. Copy/pasting the relevant block of code here for clarity:

In upnp/src/genlib/net/http/httpreadwrite.c:

if (g_maxContentLength > 0 && parser->content_length > (unsigned int)g_maxContentLength) {
	*http_error_code = HTTP_REQ_ENTITY_TOO_LARGE;
	line = __LINE__;
	ret = UPNP_E_OUTOF_BOUNDS;
	goto ExitFunction;
}

This block of code checks only does the bounds check if g_maxContentLength > 0, and it's only place g_maxContentLength is checked.

Attached is a patch against the latest sources.
(cherry picked from commit 7f1e164a5a)
2010-09-10 00:42:27 -03:00
..
doc Include prebuilt documentation (html,pdf), dropping doc++ dependancy. 2006-07-06 12:37:29 +00:00
inc SUMMARY: Minor change in comment for SetMaxContentLenght in upnp.h 2010-09-10 00:42:27 -03:00
m4 Backport of svn rev. 554: 2010-06-26 11:09:49 +00:00
sample White spaces. 2010-03-22 09:08:15 +00:00
src Fix for coding style and compiler warning message: 2010-09-10 00:32:49 -03:00
test Merge of trunk into branch 1.6.x. 2008-02-03 01:36:23 +00:00
LICENSE Removing unnecessary additional directory level. 2006-07-04 02:44:17 +00:00
Makefile.am Adding UpnpString. 2010-04-25 00:44:34 +00:00