mirror of
				https://github.com/Unleash/unleash.git
				synced 2025-10-27 11:02:16 +01:00 
			
		
		
		
	fix: authorization header typo (#6609)
## About the changes There seems to be a typo in the authorization header. We're keeping the old typo as preferred just in case, but if not present we'll default to the authorization header (not authorisation). Not sure about the impact of this bug, as all registrations might be using default project.
This commit is contained in:
		
							parent
							
								
									911b918817
								
							
						
					
					
						commit
						085adaaa51
					
				| @ -79,7 +79,7 @@ export default class RegisterController extends Controller { | ||||
|     private static extractProjectFromRequest( | ||||
|         req: IAuthRequest<unknown, void, ClientApplicationSchema>, | ||||
|     ) { | ||||
|         const token = req.get('Authorisation'); | ||||
|         const token = req.get('Authorisation') || req.headers.authorization; | ||||
|         if (token) { | ||||
|             return token.split(':')[0]; | ||||
|         } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user