Fixes #4 by handling the case where the header is not set