@@ -2459,25 +2459,25 @@ static void install_result(struct gh__request_params *params,
24592459 install_prefetch (params , status );
24602460 return ;
24612461 }
2462- }
2463-
2464- if (!strcmp (status -> content_type .buf , "application/x-git-packfile" )) {
2465- assert (params -> b_is_post );
2466- assert (params -> objects_mode == GH__OBJECTS_MODE__POST );
2462+ } else {
2463+ if (!strcmp (status -> content_type .buf , "application/x-git-packfile" )) {
2464+ assert (params -> b_is_post );
2465+ assert (params -> objects_mode == GH__OBJECTS_MODE__POST );
24672466
2468- install_packfile (params , status );
2469- return ;
2470- }
2467+ install_packfile (params , status );
2468+ return ;
2469+ }
24712470
2472- if (!strcmp (status -> content_type .buf ,
2473- "application/x-git-loose-object" )) {
2474- /*
2475- * We get these for "gvfs/objects" GET and POST requests.
2476- *
2477- * Note that this content type is singular, not plural.
2478- */
2479- install_loose (params , status );
2480- return ;
2471+ if (!strcmp (status -> content_type .buf ,
2472+ "application/x-git-loose-object" )) {
2473+ /*
2474+ * We get these for "gvfs/objects" GET and POST requests.
2475+ *
2476+ * Note that this content type is singular, not plural.
2477+ */
2478+ install_loose (params , status );
2479+ return ;
2480+ }
24812481 }
24822482
24832483 strbuf_addf (& status -> error_message ,
0 commit comments