Merge branch 'spencer/meta-404' into 'master'
Meta returns 404 if resource is not found. Closes #72 See merge request grassrootseconomics/cic-internal-integration!232
This commit is contained in:
		
						commit
						3be1c1b33d
					
				@ -147,7 +147,7 @@ function handleClientMergeGet(db, digest, keystore) {
 | 
			
		||||
					doh(e);
 | 
			
		||||
				});
 | 
			
		||||
			}).catch((e) => {
 | 
			
		||||
				console.error('mesage', e);
 | 
			
		||||
				console.error('message', e);
 | 
			
		||||
				doh(e);
 | 
			
		||||
			});
 | 
			
		||||
		});
 | 
			
		||||
 | 
			
		||||
@ -205,7 +205,7 @@ async function processRequest(req, res) {
 | 
			
		||||
 | 
			
		||||
		if (content === undefined) {
 | 
			
		||||
			console.error('empty content', data);
 | 
			
		||||
			res.writeHead(400, {"Content-Type": "text/plain"});
 | 
			
		||||
			res.writeHead(404, {"Content-Type": "text/plain"});
 | 
			
		||||
			res.end();
 | 
			
		||||
			return;
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user