X-Git-Url: http://git.indexdata.com/?p=yaz-moved-to-github.git;a=blobdiff_plain;f=client%2Fclient.c;h=5492b84be767850ed8f312de2e6b326b7c13dc67;hp=a2d1116c536c720791019b4dbc359d6418cb2395;hb=73709d08e8f3c85cbca1c8d883aac65bd6ffe8d6;hpb=fc6d778b923000b5c6ad8e108b0b184178a9d33f diff --git a/client/client.c b/client/client.c index a2d1116..5492b84 100644 --- a/client/client.c +++ b/client/client.c @@ -2,7 +2,7 @@ * Copyright (C) 1995-2006, Index Data ApS * See the file LICENSE for details. * - * $Id: client.c,v 1.311 2006-07-06 10:17:51 adam Exp $ + * $Id: client.c,v 1.312 2006-08-15 13:30:00 adam Exp $ */ /** \file client.c * \brief yaz-client program @@ -2425,11 +2425,11 @@ static int cmd_sru(const char *arg) } else { - if (yaz_matchstr(arg, "post")) + if (!yaz_matchstr(arg, "post")) sru_method = "post"; - else if (yaz_matchstr(arg, "get")) + else if (!yaz_matchstr(arg, "get")) sru_method = "get"; - else if (yaz_matchstr(arg, "soap")) + else if (!yaz_matchstr(arg, "soap")) sru_method = "soap"; else {