Mercurial > hg > orthanc
comparison Plugins/Samples/Basic/Plugin.c @ 3543:cac5a3ddd441
fix warning in plugin sample
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Wed, 16 Oct 2019 16:46:18 +0200 |
parents | c9a71eb4edcf |
children | 94f4a18a79cc |
comparison
equal
deleted
inserted
replaced
3542:25126912aa2c | 3543:cac5a3ddd441 |
---|---|
45 **/ | 45 **/ |
46 OrthancPluginSetHttpErrorDetails(context, output, "This Callback1() can only be used by a GET call", 1 /* log */); | 46 OrthancPluginSetHttpErrorDetails(context, output, "This Callback1() can only be used by a GET call", 1 /* log */); |
47 return OrthancPluginErrorCode_ParameterOutOfRange; | 47 return OrthancPluginErrorCode_ParameterOutOfRange; |
48 } | 48 } |
49 | 49 |
50 sprintf(buffer, "Callback on URL [%s] with body [%s]\n", url, request->body); | 50 sprintf(buffer, "Callback on URL [%s] with body [%s]\n", url, (const char*) request->body); |
51 OrthancPluginLogWarning(context, buffer); | 51 OrthancPluginLogWarning(context, buffer); |
52 | 52 |
53 OrthancPluginSetCookie(context, output, "hello", "world"); | 53 OrthancPluginSetCookie(context, output, "hello", "world"); |
54 OrthancPluginAnswerBuffer(context, output, buffer, strlen(buffer), "text/plain"); | 54 OrthancPluginAnswerBuffer(context, output, buffer, strlen(buffer), "text/plain"); |
55 | 55 |