mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 15:34:13 +00:00 
			
		
		
		
	HTTP Signature検証対象ヘッダにDateが含まれてなくても許容する
This commit is contained in:
		
							parent
							
								
									92828028db
								
							
						
					
					
						commit
						b3a3238e43
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -25,7 +25,7 @@ function inbox(ctx: Router.IRouterContext) {
 | 
				
			||||||
	ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature;
 | 
						ctx.req.headers.authorization = 'Signature ' + ctx.req.headers.signature;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	try {
 | 
						try {
 | 
				
			||||||
		signature = httpSignature.parseRequest(ctx.req);
 | 
							signature = httpSignature.parseRequest(ctx.req, { 'headers': [] });
 | 
				
			||||||
	} catch (e) {
 | 
						} catch (e) {
 | 
				
			||||||
		ctx.status = 401;
 | 
							ctx.status = 401;
 | 
				
			||||||
		return;
 | 
							return;
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue