Skip to content

Commit 9c1efca

Browse files
committed
gvfs-helper: move content-type warning for prefetch packs
Signed-off-by: Derrick Stolee <[email protected]>
1 parent 11e55eb commit 9c1efca

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

gvfs-helper.c

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2393,25 +2393,25 @@ static void install_result(struct gh__request_params *params,
23932393
install_prefetch(params, status);
23942394
return;
23952395
}
2396-
}
2397-
2398-
if (!strcmp(status->content_type.buf, "application/x-git-packfile")) {
2399-
assert(params->b_is_post);
2400-
assert(params->objects_mode == GH__OBJECTS_MODE__POST);
2396+
} else {
2397+
if (!strcmp(status->content_type.buf, "application/x-git-packfile")) {
2398+
assert(params->b_is_post);
2399+
assert(params->objects_mode == GH__OBJECTS_MODE__POST);
24012400

2402-
install_packfile(params, status);
2403-
return;
2404-
}
2401+
install_packfile(params, status);
2402+
return;
2403+
}
24052404

2406-
if (!strcmp(status->content_type.buf,
2407-
"application/x-git-loose-object")) {
2408-
/*
2409-
* We get these for "gvfs/objects" GET and POST requests.
2410-
*
2411-
* Note that this content type is singular, not plural.
2412-
*/
2413-
install_loose(params, status);
2414-
return;
2405+
if (!strcmp(status->content_type.buf,
2406+
"application/x-git-loose-object")) {
2407+
/*
2408+
* We get these for "gvfs/objects" GET and POST requests.
2409+
*
2410+
* Note that this content type is singular, not plural.
2411+
*/
2412+
install_loose(params, status);
2413+
return;
2414+
}
24152415
}
24162416

24172417
strbuf_addf(&status->error_message,

0 commit comments

Comments
 (0)