Execute method in s3Select package makes a response.WriteHeader call. Not calling it again in SelectObjectContentHandler function in case of error in s3Select.Execute call.