~ft/gemnine

ae93b05f1d2454bf04ddcaa32f59859bebe49526 — Sigrid Haflínudóttir 2 years ago c6d36e1
remove cr/lf
1 files changed, 3 insertions(+), 1 deletions(-)

M main.c
M main.c => main.c +3 -1
@@ 129,7 129,9 @@ request(char *url)
		goto err;
	}
	if((len = Blinelen(&r->body)) > 0)
		s[len-1] = 0;
		s[--len] = 0;
	for(len--; len >= 0 && (s[len] == '\r' || s[len] == '\n'); len--)
		s[len] = 0;
	if(s[0] < '0' || s[0] > '9' || s[1] < '0' || s[1] > '9'){
		werrstr("invalid status");
		goto err;