diff --git a/multipart/_version.py b/multipart/_version.py index 156d6f9..eead319 100644 --- a/multipart/_version.py +++ b/multipart/_version.py @@ -1 +1 @@ -__version__ = '0.0.4' +__version__ = '0.0.5' diff --git a/multipart/multipart.py b/multipart/multipart.py index 3392fc7..27aaecb 100644 --- a/multipart/multipart.py +++ b/multipart/multipart.py @@ -1436,8 +1436,8 @@ def data_callback(name, remaining=False): elif state == STATE_END: # Do nothing and just consume a byte in the end state. - self.logger.warning("Consuming a byte '%x' in the end state", c) - pass + if c not in (CR, LF): + self.logger.warning("Consuming a byte '0x%x' in the end state", c) else: # pragma: no cover (error case) # We got into a strange state somehow! Just stop processing.