A digest missing parameter should result in a bad request
Signed-off-by: Stephen J Day <stephen.day@docker.com>master
							parent
							
								
									3e906311c6
								
							
						
					
					
						commit
						606c5c8c57
					
				| 
						 | 
				
			
			@ -174,7 +174,7 @@ func (luh *layerUploadHandler) PutLayerUploadComplete(w http.ResponseWriter, r *
 | 
			
		|||
 | 
			
		||||
	if dgstStr == "" {
 | 
			
		||||
		// no digest? return error, but allow retry.
 | 
			
		||||
		w.WriteHeader(http.StatusNotFound)
 | 
			
		||||
		w.WriteHeader(http.StatusBadRequest)
 | 
			
		||||
		luh.Errors.Push(v2.ErrorCodeDigestInvalid, "digest missing")
 | 
			
		||||
		return
 | 
			
		||||
	}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue