@@ -33,7 +33,7 @@ class Quotes : public Actor {
33
33
const char *name;
34
34
Metadata *md;
35
35
Buffer *quotes[NRO_QUOTES];
36
- int (*httpMethod)(HttpMethod m, const char *url, const char *body, ParamStream *response, Table *headers);
36
+ int (*httpMethod)(HttpMethod m, const char *url, const char *body, ParamStream *response, Table *headers, const char *fingerprint );
37
37
Buffer *jsonAuxBuffer;
38
38
bool (*initWifiFunc)();
39
39
Table *headers;
@@ -61,7 +61,7 @@ class Quotes : public Actor {
61
61
return name;
62
62
}
63
63
64
- void setHttpMethod (int (*h)(HttpMethod m, const char *url, const char *body, ParamStream *response, Table *headers)) {
64
+ void setHttpMethod (int (*h)(HttpMethod m, const char *url, const char *body, ParamStream *response, Table *headers, const char *fingerprint )) {
65
65
httpMethod = h;
66
66
}
67
67
@@ -84,7 +84,7 @@ class Quotes : public Actor {
84
84
void fillQuote (int i) {
85
85
ParamStream httpBodyResponse (jsonAuxBuffer, true );
86
86
log (CLASS_QUOTES, Debug, " Filling %d" , i);
87
- int errorCode = httpMethod (HttpGet, URL_QUOTES, NULL , &httpBodyResponse, headers);
87
+ int errorCode = httpMethod (HttpGet, URL_QUOTES, NULL , &httpBodyResponse, headers, NULL );
88
88
if (errorCode == HTTP_OK) {
89
89
quotes[i]->fill (" %s" , httpBodyResponse.content ());
90
90
} else {
0 commit comments