Fixed expired time authentication, correct default content type logic

Cancel to merge processed_headers to @headers directly since it overrides the header set by user.
And updated find_header method to also find headers in processed_headers