added 'gb emailmandrill' for testing.

got it working. it posts json, not url encoded.
This commit is contained in:
mwells
2013-10-09 17:35:51 -06:00
parent 2bb8b818d6
commit ea859ef685
3 changed files with 47 additions and 8 deletions

@ -2348,7 +2348,7 @@ TcpSocket *HttpServer::unzipReply(TcpSocket* s) {
long newSize = *(long*)(s->m_readBuf + s->m_readOffset - 4);
if(newSize < 0 || newSize > 500*1024*1024) {
log("http: got bad gzipped reply of size=%li.",
log("http: got bad gzipped reply1 of size=%li.",
newSize );
g_errno = ECORRUPTHTTPGZIP;//CORRUPTDATA;//EBADREPLYSIZE;
return s;
@ -2422,7 +2422,7 @@ TcpSocket *HttpServer::unzipReply(TcpSocket* s) {
// leading \n's in the document body because the while loop above
// was bad logic
if ( restLen < 0 || ! ptr1 ) {
log("http: got bad gzipped reply of size=%li.",
log("http: got bad gzipped reply2 of size=%li.",
newSize );
mfree (newBuf, need, "HttpUnzipError");
g_errno = ECORRUPTHTTPGZIP;