projects
/
yaz-moved-to-github.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
7b2533f
)
Add support for extra parameters
author
Dennis Schafroth
<dennis@indexdata.com>
Fri, 15 Jul 2011 13:47:03 +0000
(15:47 +0200)
committer
Dennis Schafroth
<dennis@indexdata.com>
Fri, 15 Jul 2011 13:47:03 +0000
(15:47 +0200)
src/solr.c
patch
|
blob
|
history
diff --git
a/src/solr.c
b/src/solr.c
index
701e9f3
..
28b8f11
100644
(file)
--- a/
src/solr.c
+++ b/
src/solr.c
@@
-4,7
+4,7
@@
*/
/**
* \file solr.c
*/
/**
* \file solr.c
- * \brief Implements SOAP Webservice decoding/encoding
+ * \brief Implements Solr decoding/encoding
*/
#if HAVE_CONFIG_H
#include <config.h>
*/
#if HAVE_CONFIG_H
#include <config.h>
@@
-356,7
+356,20
@@
int yaz_solr_encode_request(Z_HTTP_Request *hreq, Z_SRW_PDU *srw_pdu,
}
else
return -1;
}
else
return -1;
- name[i] = 0;
+
+ if (srw_pdu->extra_args)
+ {
+ Z_SRW_extra_arg *ea = srw_pdu->extra_args;
+ for (; ea && i < SOLR_MAX_PARAMETERS; ea = ea->next)
+ {
+ name[i] = ea->name;
+ value[i] = ea->value;
+ i++;
+ }
+ }
+
+ name[i++] = 0;
+
yaz_array_to_uri(&uri_args, encode, name, value);
hreq->method = "GET";
yaz_array_to_uri(&uri_args, encode, name, value);
hreq->method = "GET";