Harden external shortener and add component releases

This commit is contained in:
faumaray committed 2026-07-29 22:40:35 +03:00
1 parent 4492ef962e
commit 167757855f
7 files changed
+188 -29

No files matched your search

+4
View File
@@ -92,7 +92,9 @@ int main()
Void::Net::Response jsonResponse{
.status = 200,
.headers = {},
.body = R"({"data":{"short":"https://sho.rt/Ab1"}})",
.elapsed = {},
};
auto extracted = (*shortener)->previewExtract(jsonResponse);
check(extracted && *extracted == "https://sho.rt/Ab1",
@@ -147,6 +149,8 @@ int main()
Void::Net::Response headerResponse{
.status = 201,
.headers = {{.name = "Location", .value = "https://sho.rt/Q1"}},
.body = {},
.elapsed = {},
};
auto header = (*queryShortener)->previewExtract(headerResponse);
check(header && *header == "https://sho.rt/Q1",