summaryrefslogtreecommitdiffstats
path: root/src/client/HTTPEngineSender.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/HTTPEngineSender.cpp')
-rw-r--r--src/client/HTTPEngineSender.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/client/HTTPEngineSender.cpp b/src/client/HTTPEngineSender.cpp
index 1d0cd846..daeae86e 100644
--- a/src/client/HTTPEngineSender.cpp
+++ b/src/client/HTTPEngineSender.cpp
@@ -136,6 +136,11 @@ void
HTTPEngineSender::move(const Path& old_path,
const Path& new_path)
{
+ SoupMessage* msg = soup_message_new(SOUP_METHOD_MOVE,
+ (_engine_url.str() + old_path.str()).c_str());
+ soup_message_headers_append(msg->request_headers, "Destination",
+ (_engine_url.str() + new_path.str()).c_str());
+ soup_session_send_message(_session, msg);
}
@@ -202,6 +207,9 @@ HTTPEngineSender::set_property(const URI& subject,
const URI& predicate,
const Atom& value)
{
+ Resource::Properties prop;
+ prop.insert(make_pair(predicate, value));
+ put(subject, prop);
}