Minor refactoring in examples/upload.c
Made the names of the function arguments of the declaration and the definition of mg_get_var(..) the same.

Changed the error codes to have a consistent way of reporting errors. -2 is returned if there is a problem with the size of the destination buffer. -1 is returned if the variable is not found.

Updated the documentation of mg_get_var(..) in mongoose.h and removed the redundant comments from mongoose.c.
Merge pull request #65 from nullable-type/master

Inconsistent error codes of mg_get_var(..)
Merge branch 'master' of ssh://github.com/valenok/mongoose
Made behavior of mg_get_cookie(..) on errors the same as mg_get_var(..). Separated the two cases a.) problems with destination buffer and b.) cookie header or cookie parameter not existing.
Fix for hang when sending large request with SSL enabled

When using SSL, we must use SSL_pending() in addition to/instead of select() to determine whether there is SSL data to be read.
This update makes the SSL_pending() function available and uses is to check for data if select() indicates there is no data.

See https://github.com/valenok/mongoose/issues/47
Update README.md
Merge pull request #67 from tayS/ssl_pending

Fix for hang when sending large request with SSL enabled
Merge branch 'master' of ssh://github.com/valenok/mongoose
Fix for the relative document root & PHP
Merge pull request #66 from nullable-type/master

Made behavior of mg_get_cookie(..) regarding errors the same as of mg_get_var(..)
Fixed unit test to accomodate mg_get_var() API change
Fix keep-alive handling in process_new_connection()
Update README.md
Update README.md
Update README.md
Checking for endianness in runtime in MD5 and SHA code
Restore SIGCHLD handler to SIG_DFL in CGI process
Fix read_websocket() for content length > 125
Changed GetFullPathName -> GetFullPathNameA