Fossil

Diff
Login

Diff

Differences From Artifact [9e040d72f6]:

To Artifact [61518be239]:


1063
1064
1065
1066
1067
1068
1069
1070

1071
1072
1073
1074
1075
1076

1077
1078
1079
1080
1081
1082
1083
1063
1064
1065
1066
1067
1068
1069

1070
1071
1072
1073
1074
1075

1076
1077
1078
1079
1080
1081
1082
1083







-
+





-
+







  }
  { /* Send the is-exec bit via response header so that the UI can be
    ** updated to account for that. */
    int fperm = 0;
    char * zFuuid = fileedit_file_uuid(zFilename, vid, &fperm);
    const char * zPerm = mfile_permint_mstring(fperm);
    assert(zFuuid);
    cgi_printf_header("x-fileedit-file-perm:%s\r\n", zPerm);
    cgi_printf_header("x-fileedit-file-perm:%s" CRLF, zPerm);
    fossil_free(zFuuid);
  }
  { /* Send branch name via response header for UI usability reasons */
    char * zBranch = branch_of_rid(vid);
    if(zBranch!=0 && zBranch[0]!=0){
      cgi_printf_header("x-fileedit-checkin-branch: %s\r\n", zBranch);
      cgi_printf_header("x-fileedit-checkin-branch: %s" CRLF, zBranch);
    }
    fossil_free(zBranch);
  }
  cgi_set_content_type(zMime);
  cgi_set_content(&content);
}