In HEAD request for missing resource, only 404 NOT FOUND is returned
Change-Id: I73caf67b59519e6f4f82f7d78f5d4fd4ad9affcd Signed-off-by: weiyuan.yl <weiyuan.yl@alibaba-inc.com>master
							parent
							
								
									8c97a853d8
								
							
						
					
					
						commit
						3e4b554f8d
					
				| 
						 | 
					@ -754,7 +754,7 @@ func (d *driver) ossPath(path string) string {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
func parseError(path string, err error) error {
 | 
					func parseError(path string, err error) error {
 | 
				
			||||||
	if ossErr, ok := err.(*oss.Error); ok && ossErr.Code == "NoSuchKey" {
 | 
						if ossErr, ok := err.(*oss.Error); ok && ossErr.StatusCode == 404 && (ossErr.Code == "NoSuchKey" || ossErr.Code == "") {
 | 
				
			||||||
		return storagedriver.PathNotFoundError{Path: path}
 | 
							return storagedriver.PathNotFoundError{Path: path}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue