Browse Source

Fixed query parameters for httpPut

The parameters were not passed with the actual query
Andreas Fetzer 10 years ago
parent
commit
94285afb46
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Libs/XNAT/Core/ctkXnatSession.cpp

+ 2 - 2
Libs/XNAT/Core/ctkXnatSession.cpp

@@ -531,12 +531,12 @@ QList<ctkXnatObject*> ctkXnatSession::httpResults(const QUuid& uuid, const QStri
   return d->results(restResult.data(), schemaType);
 }
 
-QUuid ctkXnatSession::httpPut(const QString& resource, const ctkXnatSession::UrlParameters& /*parameters*/,
+QUuid ctkXnatSession::httpPut(const QString& resource, const ctkXnatSession::UrlParameters& parameters,
                               const ctkXnatSession::HttpRawHeaders& /*rawHeaders*/)
 {
   Q_D(ctkXnatSession);
   d->checkSession();
-  return d->xnat->put(resource);
+  return d->xnat->put(resource, parameters);
 }
 
 //----------------------------------------------------------------------------