mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	AP Signatureヘッダの特殊処理を削除 (#5628)
This commit is contained in:
		
							parent
							
								
									05a15afadb
								
							
						
					
					
						commit
						fe9371f06c
					
				
					 2 changed files with 0 additions and 7 deletions
				
			
		| 
						 | 
				
			
			@ -60,11 +60,6 @@ export default async (user: ILocalUser, url: string, object: any) => {
 | 
			
		|||
			headers: ['date', 'host', 'digest']
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
		// Signature: Signature ... => Signature: ...
 | 
			
		||||
		let sig = req.getHeader('Signature')!.toString();
 | 
			
		||||
		sig = sig.replace(/^Signature /, '');
 | 
			
		||||
		req.setHeader('Signature', sig);
 | 
			
		||||
 | 
			
		||||
		req.on('timeout', () => req.abort());
 | 
			
		||||
 | 
			
		||||
		req.on('error', e => {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -26,8 +26,6 @@ const router = new Router();
 | 
			
		|||
function inbox(ctx: Router.RouterContext) {
 | 
			
		||||
	let signature;
 | 
			
		||||
 | 
			
		||||
	ctx.req.headers.authorization = `Signature ${ctx.req.headers.signature}`;
 | 
			
		||||
 | 
			
		||||
	try {
 | 
			
		||||
		signature = httpSignature.parseRequest(ctx.req, { 'headers': [] });
 | 
			
		||||
	} catch (e) {
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		
		Reference in a new issue