Index: uspace/lib/http/src/headers.c
===================================================================
--- uspace/lib/http/src/headers.c	(revision b7fd2a02e4161f4edd38548e7f8456b8021549be)
+++ uspace/lib/http/src/headers.c	(revision a1a81f698d5d7a69659be156314cb47101fde090)
@@ -64,5 +64,5 @@
 		return NULL;
 	}
-	
+
 	header->value = str_dup(value);
 	if (header->value == NULL) {
@@ -101,13 +101,13 @@
 		if (name_end)
 			recv_mark_update(rb, name_end);
-		
+
 		errno_t rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
 	} while (is_token(c));
-	
+
 	if (c != ':')
 		return EINVAL;
-	
+
 	return EOK;
 }
@@ -118,44 +118,44 @@
 	errno_t rc = EOK;
 	char c = 0;
-	
+
 	/* Ignore any inline LWS */
 	while (true) {
 		if (value_start)
 			recv_mark_update(rb, value_start);
-		
+
 		rc = recv_char(rb, &c, false);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (c != ' ' && c != '\t')
 			break;
-		
+
 		rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
 	}
-	
+
 	while (true) {
 		recv_mark_update(rb, value_end);
-		
+
 		rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (c != '\r' && c != '\n')
 			continue;
-		
+
 		size_t nrecv;
 		rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'), &nrecv);
 		if (rc != EOK)
 			return rc;
-		
+
 		rc = recv_char(rb, &c, false);
 		if (rc != EOK)
 			return rc;
-		
+
 		if (c != ' ' && c != '\t')
 			break;
-		
+
 		/* Ignore the char */
 		rc = recv_char(rb, &c, true);
@@ -163,5 +163,5 @@
 			return rc;
 	}
-	
+
 	return EOK;
 }
@@ -172,12 +172,12 @@
 	receive_buffer_mark_t mark_start;
 	receive_buffer_mark_t mark_end;
-	
+
 	recv_mark(rb, &mark_start);
 	recv_mark(rb, &mark_end);
-	
+
 	errno_t rc = http_header_receive_name(rb, &mark_end);
 	if (rc != EOK)
 		goto end;
-	
+
 	size_t name_size = mark_end.offset - mark_start.offset;
 	if (size_limit > 0 && name_size > size_limit) {
@@ -185,14 +185,14 @@
 		goto end;
 	}
-	
+
 	char *name = NULL;
 	rc = recv_cut_str(rb, &mark_start, &mark_end, &name);
 	if (rc != EOK)
 		goto end;
-	
+
 	rc = http_header_receive_value(rb, &mark_start, &mark_end);
 	if (rc != EOK)
 		goto end_with_name;
-	
+
 	size_t value_size = mark_end.offset - mark_start.offset;
 	if (size_limit > 0 && (name_size + value_size) > size_limit) {
@@ -200,13 +200,13 @@
 		goto end_with_name;
 	}
-	
+
 	char *value = NULL;
 	rc = recv_cut_str(rb, &mark_start, &mark_end, &value);
 	if (rc != EOK)
 		goto end_with_name;
-	
+
 	if (out_bytes_used)
 		*out_bytes_used = name_size + value_size;
-	
+
 	header->name = name;
 	header->value = value;
@@ -228,20 +228,20 @@
 	size_t read_index = 0;
 	size_t write_index = 0;
-	
+
 	while (is_lws(value[read_index])) read_index++;
-	
+
 	while (value[read_index] != 0) {
 		if (is_lws(value[read_index])) {
 			while (is_lws(value[read_index])) read_index++;
-			
+
 			if (value[read_index] != 0)
 				value[write_index++] = ' ';
-			
+
 			continue;
 		}
-		
+
 		value[write_index++] = value[read_index++];
 	}
-	
+
 	value[write_index] = 0;
 }
@@ -266,5 +266,5 @@
 		if (!http_header_name_match(header->name, name))
 			continue;
-		
+
 		if (found == NULL) {
 			found = header;
@@ -274,8 +274,8 @@
 		}
 	}
-	
+
 	if (found == NULL)
 		return HTTP_EMISSING_HEADER;
-	
+
 	*out_header = found;
 	return EOK;
@@ -288,5 +288,5 @@
 	if (header == NULL)
 		return ENOMEM;
-	
+
 	http_headers_append_header(headers, header);
 	return EOK;
@@ -300,12 +300,12 @@
 	if (rc != EOK && rc != HTTP_EMISSING_HEADER)
 		return rc;
-	
+
 	if (rc == HTTP_EMISSING_HEADER)
 		return http_headers_append(headers, name, value);
-	
+
 	char *new_value = str_dup(value);
 	if (new_value == NULL)
 		return ENOMEM;
-	
+
 	free(header->value);
 	header->value = new_value;
@@ -319,5 +319,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	*value = header->value;
 	return EOK;
@@ -329,5 +329,5 @@
 	errno_t rc = EOK;
 	unsigned added = 0;
-	
+
 	while (true) {
 		char c = 0;
@@ -335,13 +335,13 @@
 		if (rc != EOK)
 			goto error;
-		
+
 		if (c == '\n' || c == '\r')
 			break;
-		
+
 		if (limit_count > 0 && added >= limit_count) {
 			rc = ELIMIT;
 			goto error;
 		}
-		
+
 		http_header_t *header = malloc(sizeof(http_header_t));
 		if (header == NULL) {
@@ -350,5 +350,5 @@
 		}
 		http_header_init(header);
-		
+
 		size_t header_size;
 		rc = http_header_receive(rb, header, limit_alloc, &header_size);
@@ -358,9 +358,9 @@
 		}
 		limit_alloc -= header_size;
-		
+
 		http_headers_append_header(headers, header);
 		added++;
 	}
-	
+
 	return EOK;
 error:
Index: uspace/lib/http/src/http.c
===================================================================
--- uspace/lib/http/src/http.c	(revision b7fd2a02e4161f4edd38548e7f8456b8021549be)
+++ uspace/lib/http/src/http.c	(revision a1a81f698d5d7a69659be156314cb47101fde090)
@@ -60,5 +60,5 @@
 	if (http == NULL)
 		return NULL;
-	
+
 	http->host = str_dup(host);
 	if (http->host == NULL) {
@@ -67,5 +67,5 @@
 	}
 	http->port = port;
-	
+
 	http->buffer_size = 4096;
 	errno_t rc = recv_buffer_init(&http->recv_buffer, http->buffer_size,
@@ -75,5 +75,5 @@
 		return NULL;
 	}
-	
+
 	return http;
 }
@@ -83,28 +83,28 @@
 	if (http->conn != NULL)
 		return EBUSY;
-	
+
 	errno_t rc = inet_host_plookup_one(http->host, ip_any, &http->addr, NULL,
 	    NULL);
 	if (rc != EOK)
 		return rc;
-	
+
 	inet_ep2_t epp;
-	
+
 	inet_ep2_init(&epp);
 	epp.remote.addr = http->addr;
 	epp.remote.port = http->port;
-	
+
 	rc = tcp_create(&http->tcp);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = tcp_conn_create(http->tcp, &epp, NULL, NULL, &http->conn);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = tcp_conn_wait_connected(http->conn);
 	if (rc != EOK)
 		return rc;
-	
+
 	return rc;
 }
@@ -114,10 +114,10 @@
 	if (http->conn == NULL)
 		return EINVAL;
-	
+
 	tcp_conn_destroy(http->conn);
 	http->conn = NULL;
 	tcp_destroy(http->tcp);
 	http->tcp = NULL;
-	
+
 	return EOK;
 }
Index: uspace/lib/http/src/receive-buffer.c
===================================================================
--- uspace/lib/http/src/receive-buffer.c	(revision b7fd2a02e4161f4edd38548e7f8456b8021549be)
+++ uspace/lib/http/src/receive-buffer.c	(revision a1a81f698d5d7a69659be156314cb47101fde090)
@@ -48,11 +48,11 @@
 	rb->receive = receive;
 	rb->client_data = client_data;
-	
+
 	rb->in = 0;
 	rb->out = 0;
 	rb->size = buffer_size;
-	
+
 	list_initialize(&rb->marks);
-	
+
 	rb->buffer = malloc(buffer_size);
 	if (rb->buffer == NULL)
@@ -73,5 +73,5 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	memcpy(rb->buffer, buf, size);
 	rb->in = size;
@@ -111,10 +111,10 @@
 	if (a->offset > b->offset)
 		return EINVAL;
-	
+
 	size_t size = b->offset - a->offset;
 	void *buf = malloc(size);
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	memcpy(buf, rb->buffer + a->offset, size);
 	*out_buf = buf;
@@ -127,10 +127,10 @@
 	if (a->offset > b->offset)
 		return EINVAL;
-	
+
 	size_t size = b->offset - a->offset;
 	char *buf = malloc(size + 1);
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	memcpy(buf, rb->buffer + a->offset, size);
 	buf[size] = 0;
@@ -156,8 +156,8 @@
 				min_mark = min(min_mark, mark->offset);
 			}
-			
+
 			if (min_mark == 0)
 				return ELIMIT;
-			
+
 			size_t new_in = rb->in - min_mark;
 			memmove(rb->buffer, rb->buffer + min_mark, new_in);
@@ -168,13 +168,13 @@
 			}
 		}
-		
+
 		size_t nrecv;
 		errno_t rc = rb->receive(rb->client_data, rb->buffer + rb->in, free, &nrecv);
 		if (rc != EOK)
 			return rc;
-		
+
 		rb->in = nrecv;
 	}
-	
+
 	*c = rb->buffer[rb->out];
 	if (consume)
@@ -194,5 +194,5 @@
 		return EOK;
 	}
-	
+
 	return rb->receive(rb->client_data, buf, buf_size, nrecv);
 }
@@ -248,13 +248,13 @@
 		if (rc != EOK)
 			return rc;
-		
+
 		if (!class(c))
 			break;
-		
+
 		rc = recv_char(rb, &c, true);
 		if (rc != EOK)
 			return rc;
 	}
-	
+
 	return EOK;
 }
@@ -272,19 +272,19 @@
 	if (rc != EOK)
 		return rc;
-	
+
 	if (c != '\r' && c != '\n') {
 		*nrecv = 0;
 		return EOK;
 	}
-	
+
 	rc = recv_char(rb, &c, true);
 	if (rc != EOK)
 		return rc;
-	
+
 	size_t nr;
 	rc = recv_discard(rb, (c == '\r' ? '\n' : '\r'), &nr);
 	if (rc != EOK)
 		return rc;
-	
+
 	*nrecv = 1 + nr;
 	return EOK;
@@ -296,5 +296,5 @@
 	size_t written = 0;
 	size_t nr;
-	
+
 	while (written < size) {
 		char c = 0;
@@ -321,5 +321,5 @@
 		line[written++] = c;
 	}
-	
+
 	return ELIMIT;
 }
Index: uspace/lib/http/src/request.c
===================================================================
--- uspace/lib/http/src/request.c	(revision b7fd2a02e4161f4edd38548e7f8456b8021549be)
+++ uspace/lib/http/src/request.c	(revision a1a81f698d5d7a69659be156314cb47101fde090)
@@ -52,5 +52,5 @@
 	if (req == NULL)
 		return NULL;
-	
+
 	req->method = str_dup(method);
 	if (req->method == NULL) {
@@ -58,5 +58,5 @@
 		return NULL;
 	}
-	
+
 	req->path = str_dup(path);
 	if (req->path == NULL) {
@@ -65,7 +65,7 @@
 		return NULL;
 	}
-	
+
 	http_headers_init(&req->headers);
-	
+
 	return req;
 }
@@ -98,5 +98,5 @@
 		return EINVAL;
 	size_t size = meth_size;
-	
+
 	http_headers_foreach(req->headers, header) {
 		ssize_t header_size = http_header_encode(header, NULL, 0);
@@ -106,9 +106,9 @@
 	}
 	size += str_length(HTTP_REQUEST_LINE);
-	
+
 	char *buf = malloc(size);
 	if (buf == NULL)
 		return ENOMEM;
-	
+
 	char *pos = buf;
 	size_t pos_size = size;
@@ -120,5 +120,5 @@
 	pos += written;
 	pos_size -= written;
-	
+
 	http_headers_foreach(req->headers, header) {
 		written = http_header_encode(header, pos, pos_size);
@@ -130,10 +130,10 @@
 		pos_size -= written;
 	}
-	
+
 	size_t rlsize = str_size(HTTP_REQUEST_LINE);
 	memcpy(pos, HTTP_REQUEST_LINE, rlsize);
 	pos_size -= rlsize;
 	assert(pos_size == 0);
-	
+
 	*out_buf = buf;
 	*out_buf_size = size;
@@ -145,12 +145,12 @@
 	char *buf = NULL;
 	size_t buf_size = 0;
-	
+
 	errno_t rc = http_request_format(req, &buf, &buf_size);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = tcp_conn_send(http->conn, buf, buf_size);
 	free(buf);
-	
+
 	return rc;
 }
Index: uspace/lib/http/src/response.c
===================================================================
--- uspace/lib/http/src/response.c	(revision b7fd2a02e4161f4edd38548e7f8456b8021549be)
+++ uspace/lib/http/src/response.c	(revision a1a81f698d5d7a69659be156314cb47101fde090)
@@ -51,5 +51,5 @@
 	receive_buffer_mark_t start;
 	receive_buffer_mark_t end;
-	
+
 	recv_mark(rb, &start);
 	errno_t rc = recv_while(rb, is_digit);
@@ -59,5 +59,5 @@
 	}
 	recv_mark(rb, &end);
-	
+
 	rc = recv_cut_str(rb, &start, &end, str);
 	recv_unmark(rb, &start);
@@ -70,11 +70,11 @@
 	char *str = NULL;
 	errno_t rc = receive_number(rb, &str);
-	
-	if (rc != EOK)
-		return rc;
-	
+
+	if (rc != EOK)
+		return rc;
+
 	rc = str_uint8_t(str, NULL, 10, true, out_value);
 	free(str);
-	
+
 	return rc;
 }
@@ -84,11 +84,11 @@
 	char *str = NULL;
 	errno_t rc = receive_number(rb, &str);
-	
-	if (rc != EOK)
-		return rc;
-	
+
+	if (rc != EOK)
+		return rc;
+
 	rc = str_uint16_t(str, NULL, 10, true, out_value);
 	free(str);
-	
+
 	return rc;
 }
@@ -116,36 +116,36 @@
 	uint16_t status;
 	char *message = NULL;
-	
+
 	errno_t rc = expect(rb, "HTTP/");
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = receive_uint8_t(rb, &version.major);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = expect(rb, ".");
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = receive_uint8_t(rb, &version.minor);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = expect(rb, " ");
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = receive_uint16_t(rb, &status);
 	if (rc != EOK)
 		return rc;
-	
+
 	rc = expect(rb, " ");
 	if (rc != EOK)
 		return rc;
-	
+
 	receive_buffer_mark_t msg_start;
 	recv_mark(rb, &msg_start);
-	
+
 	rc = recv_while(rb, is_not_newline);
 	if (rc != EOK) {
@@ -153,8 +153,8 @@
 		return rc;
 	}
-	
+
 	receive_buffer_mark_t msg_end;
 	recv_mark(rb, &msg_end);
-	
+
 	if (out_message) {
 		rc = recv_cut_str(rb, &msg_start, &msg_end, &message);
@@ -165,8 +165,8 @@
 		}
 	}
-	
+
 	recv_unmark(rb, &msg_start);
 	recv_unmark(rb, &msg_end);
-	
+
 	size_t nrecv;
 	rc = recv_eol(rb, &nrecv);
@@ -177,5 +177,5 @@
 		return rc;
 	}
-	
+
 	if (out_version)
 		*out_version = version;
@@ -195,15 +195,15 @@
 	memset(resp, 0, sizeof(http_response_t));
 	http_headers_init(&resp->headers);
-	
+
 	errno_t rc = http_receive_status(rb, &resp->version, &resp->status,
 	    &resp->message);
 	if (rc != EOK)
 		goto error;
-	
+
 	rc = http_headers_receive(rb, &resp->headers, max_headers_size,
 	    max_headers_count);
 	if (rc != EOK)
 		goto error;
-	
+
 	size_t nrecv;
 	rc = recv_eol(rb, &nrecv);
@@ -212,7 +212,7 @@
 	if (rc != EOK)
 		goto error;
-	
+
 	*out_response = resp;
-	
+
 	return EOK;
 error:
