fixing upload endpoint bug
This commit is contained in:
		
							parent
							
								
									5177d35de4
								
							
						
					
					
						commit
						f7b84f7407
					
				
							
								
								
									
										6
									
								
								main.go
									
									
									
									
									
								
							
							
						
						
									
										6
									
								
								main.go
									
									
									
									
									
								
							@ -86,7 +86,7 @@ func main() {
 | 
				
			|||||||
		os.Exit(1)
 | 
							os.Exit(1)
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	uploadURL, err := url.Parse(vargs.BaseURL)
 | 
						uploadURL, err := url.Parse(vargs.UploadURL)
 | 
				
			||||||
	if err != nil {
 | 
						if err != nil {
 | 
				
			||||||
		fmt.Printf("Failed to parse upload URL\n")
 | 
							fmt.Printf("Failed to parse upload URL\n")
 | 
				
			||||||
		os.Exit(1)
 | 
							os.Exit(1)
 | 
				
			||||||
@ -198,10 +198,6 @@ func writeChecksums(files, methods []string) ([]string, error) {
 | 
				
			|||||||
				return nil, err
 | 
									return nil, err
 | 
				
			||||||
			}
 | 
								}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
			fmt.Println(file)
 | 
					 | 
				
			||||||
			fmt.Println(method)
 | 
					 | 
				
			||||||
			fmt.Println(hash)
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
			checksums[method] = append(checksums[method], hash, file)
 | 
								checksums[method] = append(checksums[method], hash, file)
 | 
				
			||||||
		}
 | 
							}
 | 
				
			||||||
	}
 | 
						}
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user