1087 char *buf = pool_malloc(pool, 64); |
1087 char *buf = pool_malloc(pool, 64); |
1088 if(!buf) { |
1088 if(!buf) { |
1089 return 1; |
1089 return 1; |
1090 } |
1090 } |
1091 uint64_t contentlength = s->st_size; |
1091 uint64_t contentlength = s->st_size; |
1092 snprintf(buf, 64, "%" PRIu64 "\0", contentlength); |
1092 snprintf(buf, 64, "%" PRIu64, contentlength); |
1093 if(w_addprop(res, pool, "getcontentlength", buf)) { |
1093 if(w_addprop(res, pool, "getcontentlength", buf)) { |
1094 return 1; |
1094 return 1; |
1095 } |
1095 } |
1096 } |
1096 } |
1097 if(properties.getlastmodified) { |
1097 if(properties.getlastmodified) { |