summaryrefslogtreecommitdiff
path: root/test/request.c
diff options
context:
space:
mode:
authorjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2007-07-02 16:24:33 +0000
committerjoe <joe@61a7d7f5-40b7-0310-9c16-bb0ea8cb1845>2007-07-02 16:24:33 +0000
commitab0db0c9f8acdc0a159b56babd641f00124f6c2e (patch)
treed928820ee15ce1847de6d71939be3cf9a0f269e6 /test/request.c
parentd57a971d0b9df81f6b9e53188c841e6a4806b821 (diff)
downloadneon-ab0db0c9f8acdc0a159b56babd641f00124f6c2e.tar.gz
* test/request.c (fail_statusline): Adjust for new error message.
git-svn-id: http://svn.webdav.org/repos/projects/neon/trunk@1177 61a7d7f5-40b7-0310-9c16-bb0ea8cb1845
Diffstat (limited to 'test/request.c')
-rw-r--r--test/request.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/request.c b/test/request.c
index b2f2f6e..f78a082 100644
--- a/test/request.c
+++ b/test/request.c
@@ -1,6 +1,6 @@
/*
HTTP request handling tests
- Copyright (C) 2001-2006, Joe Orton <joe@manyfish.co.uk>
+ Copyright (C) 2001-2007, Joe Orton <joe@manyfish.co.uk>
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
@@ -1529,8 +1529,8 @@ static int fail_statusline(void)
ret = any_request(sess, "/fail");
ONV(ret != NE_ERROR, ("request failed with %d not NE_ERROR", ret));
- /* FIXME: will break for i18n. */
- ONV(strcmp(ne_get_error(sess), "Could not parse response status line."),
+ ONV(strstr(ne_get_error(sess),
+ "Could not parse response status line") == NULL,
("session error was `%s'", ne_get_error(sess)));
ne_session_destroy(sess);