Changeset 82


Ignore:
Timestamp:
06/26/15 22:04:19 (9 years ago)
Author:
tim
Message:

minor fixes

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bin/bletchley-http2py

    r81 r82  
    152152    # TODO: Perhaps you needs something like this?
    153153    #       (See 'bletchley-decode -e ?' for a list of encodings)
    154     # return blobtools.decodeAll(['percent/mixed','base64/rfc3548'], token)
     154    # return blobtools.decodeChain(['percent/mixed','base64/rfc3548'], token)
    155155    return token
    156156
     
    158158def encode(binary):
    159159    # TODO: Perhaps you needs something like this?
    160     # return blobtools.encodeAll(['base64/rfc3548', 'percent/mixed'], binary)
     160    # return blobtools.encodeChain(['base64/rfc3548', 'percent/mixed'], binary)
    161161    return binary
    162162''' % (repr(host),repr(port),repr(protocol)))
  • trunk/lib/bletchley/blobtools.py

    r67 r82  
    3131# bytes or managing encoded case
    3232def _percentEncode(binary, plus=False, upper=True):
    33     fmt = "%%%.2X"
     33    fmt = "%%%.2x"
    3434    if upper:
    35         fmt = "%%%.2x"
     35        fmt = "%%%.2X"
    3636
    3737    ret_val = bytearray(b'')
Note: See TracChangeset for help on using the changeset viewer.