fixed and issue when capturing headers and content