add nil check in setAuthorizationHeaderWithToken:ofType:
Merge branch 'issues/remove-rewrite-serializer'