repo: 80col alignment
This commit is contained in:
parent
679d651023
commit
ad3edd850b
11
test.c
11
test.c
|
@ -19,7 +19,10 @@ char *res_test_data = {
|
||||||
"HTTP/1.1 301 Moved Permanently\r\n"
|
"HTTP/1.1 301 Moved Permanently\r\n"
|
||||||
"Location: http://www.google.com/\r\n"
|
"Location: http://www.google.com/\r\n"
|
||||||
"Content-Type: text/html; charset=UTF-8\r\n"
|
"Content-Type: text/html; charset=UTF-8\r\n"
|
||||||
"Content-Security-Policy-Report-Only: object-src 'none';base-uri 'self';script-src 'nonce-7hRaJZVpUAa6E54ys6qpuA' 'strict-dynamic' 'report-sample' 'unsafe-eval' 'unsafe-inline' https: http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp\r\n"
|
"Content-Security-Policy-Report-Only: object-src 'none';base-uri"
|
||||||
|
"'self';script-src 'nonce-7hRaJZVpUAa6E54ys6qpuA' 'strict-dynamic'"
|
||||||
|
"'report-sample' 'unsafe-eval' 'unsafe-inline' https:"
|
||||||
|
"http:;report-uri https://csp.withgoogle.com/csp/gws/other-hp\r\n"
|
||||||
"Date: Wed, 04 Sep 2024 17:52:02 GMT\r\n"
|
"Date: Wed, 04 Sep 2024 17:52:02 GMT\r\n"
|
||||||
"Expires: Fri, 04 Oct 2024 17:52:02 GMT\r\n"
|
"Expires: Fri, 04 Oct 2024 17:52:02 GMT\r\n"
|
||||||
"Cache-Control: public, max-age=2592000\r\n"
|
"Cache-Control: public, max-age=2592000\r\n"
|
||||||
|
@ -43,13 +46,15 @@ int main(void) {
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct httpareq *req = (struct httpareq *) calloc(1, sizeof(struct httpareq));
|
struct httpareq *req =
|
||||||
|
(struct httpareq *) calloc(1, sizeof(struct httpareq));
|
||||||
if (!req) {
|
if (!req) {
|
||||||
fprintf(stderr, "Not enough dynamic memory\n");
|
fprintf(stderr, "Not enough dynamic memory\n");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct httpares *res = (struct httpares *) calloc(1, sizeof(struct httpares));
|
struct httpares *res =
|
||||||
|
(struct httpares *) calloc(1, sizeof(struct httpares));
|
||||||
if (!res) {
|
if (!res) {
|
||||||
fprintf(stderr, "Not enough dynamic memory\n");
|
fprintf(stderr, "Not enough dynamic memory\n");
|
||||||
return -1;
|
return -1;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user