Changeset 6313 for branches/1.7/src


Ignore:
Timestamp:
May 4, 2016 11:27:36 AM (6 years ago)
Author:
gah
Message:

fixes for binary data in putFile, defer loader setting default value

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.7/src/core/RpLibrary.cc

    r5679 r6313  
    17911791
    17921792    // check for binary data
    1793     // FIXME: I've already appended a NUL-byte of this assuming that
     1793    // FIXME: I've already appended a NUL-byte to this assuming that
    17941794    //        it's a ASCII string. This test must come before.
    17951795    if (Rappture::encoding::isBinary(value.c_str(), value.length())) {
     
    20472047        return *this;
    20482048    }
    2049     if (compress == RPLIB_COMPRESS) {
     2049    if ((compress == RPLIB_COMPRESS) ||
     2050        (Rappture::encoding::isBinary(fileBuf.bytes(), fileBuf.size()))) {     
    20502051        putData(path, fileBuf.bytes(), fileBuf.size(), append);
    20512052    } else {
Note: See TracChangeset for help on using the changeset viewer.