Skip to content

Commit 5715802

Browse files
committed
tidy up code
1 parent 3f32944 commit 5715802

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

main.go

+2-3
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ func main() {
7474
return
7575
}
7676

77-
fmt.Printf("Model downloaded successfully to %s\n", outputPath)
77+
fmt.Printf("Model downloaded successfully to %s\n", filepath.Dir(outputPath))
7878
}
7979

8080
func loadConfig(filename string) (*Config, error) {
@@ -108,8 +108,7 @@ func downloadFile(outputPath string, url string) error {
108108
return fmt.Errorf("HTTP error for %s: %v", url, resp.StatusCode)
109109
}
110110

111-
// Check Content-Disposition header for filename
112-
header := resp.Header.Get("Content-Disposition")
111+
header := resp.Header.Get("content-disposition")
113112
if header != "" {
114113
parts := strings.Split(header, "filename=")
115114
if len(parts) > 1 {

0 commit comments

Comments
 (0)