Changeset 64 in cheroxy
- Timestamp:
- 04/11/13 18:31:04 (11 years ago)
- Location:
- trunk/src
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/CRXHttpResponse.cpp
r54 r64 126 126 127 127 /*---------------------------------------------------------------- 128 * 2. check content size when is NOT chunked-encoding 129 *----------------------------------------------------------------*/ 130 if (!mIsChunked && mContent.size () >= mContentLength) 131 return 0; 132 133 /*---------------------------------------------------------------- 134 * 3. resize memory and copy 128 * 2. resize memory and copy 135 129 *----------------------------------------------------------------*/ 136 130 aSize = mContent.size (); 137 131 mContent.resize (aSize + aLength); 132 138 133 memcpy (&mContent[0] + aSize, aContent, aLength); 139 134 140 135 /*---------------------------------------------------------------- 141 * 4.136 * 3. push data 142 137 *----------------------------------------------------------------*/ 143 138 aResult = mContent.size (); … … 156 151 } 157 152 } 153 154 /*---------------------------------------------------------------- 155 * 4. check content size when is NOT chunked-encoding 156 *----------------------------------------------------------------*/ 157 if (!mIsChunked && mContent.size () >= mContentLength) 158 return 0; 158 159 /*----------------------------------------------------------------*/ 159 160 -
trunk/src/CRXProxy.cpp
r61 r64 175 175 mHttpResponse.SetHeader (aHttpHeader.c_str ()); 176 176 aRemainHeader = false; 177 178 if (mHttpResponse.GetStatusCode () == 304) break; 177 179 } 178 180 }
Note:
See TracChangeset
for help on using the changeset viewer.