formstream 1.5.0 → 1.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/formstream.js +7 -2
- package/package.json +1 -1
package/lib/formstream.js
CHANGED
|
@@ -214,8 +214,13 @@ FormStream.prototype.buffer = function (name, buffer, filename, mimeType) {
|
|
|
214
214
|
|
|
215
215
|
process.nextTick(this.resume.bind(this));
|
|
216
216
|
if (debug.enabled) {
|
|
217
|
-
|
|
218
|
-
buffer
|
|
217
|
+
if (buffer.length > 512) {
|
|
218
|
+
debug('new buffer field, content size: %d\n%s%s',
|
|
219
|
+
buffer.length, leading.toString(), hex(buffer.slice(0, 512)));
|
|
220
|
+
} else {
|
|
221
|
+
debug('new buffer field, content size: %d\n%s%s',
|
|
222
|
+
buffer.length, leading.toString(), hex(buffer));
|
|
223
|
+
}
|
|
219
224
|
}
|
|
220
225
|
return this;
|
|
221
226
|
};
|