Index: uspace/lib/http/src/request.c
===================================================================
--- uspace/lib/http/src/request.c	(revision 1433ecda9b732f3f185f902feb26826ec2496e03)
+++ uspace/lib/http/src/request.c	(revision e62f8e3fe3c6d4a7b8ff824766f6136e0e6ed0ed)
@@ -82,9 +82,5 @@
     const char *method, const char *path)
 {
-	if (buf == NULL) {
-		return printf_size(HTTP_METHOD_LINE, method, path);
-	} else {
-		return snprintf(buf, buf_size, HTTP_METHOD_LINE, method, path);
-	}
+	return snprintf(buf, buf_size, HTTP_METHOD_LINE, method, path);
 }
 
