[Libreoffice-commits] online.git: loolwsd/Storage.cpp

Aleksander Machniak machniak at kolabsys.com
Tue Oct 11 08:11:39 UTC 2016


 loolwsd/Storage.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 799b783968f86f1c943e17008220bb4741f41b5f
Author: Aleksander Machniak <machniak at kolabsys.com>
Date:   Mon Oct 10 09:12:01 2016 +0200

    Fix WOPI request header: X-WOPIOverride -> X-WOPI-Override
    
    Change-Id: Ibd288beeffecea415c8524dfc03e77e71ba3c10e
    Reviewed-on: https://gerrit.libreoffice.org/29662
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loolwsd/Storage.cpp b/loolwsd/Storage.cpp
index 57e3c5f..7cf5693 100644
--- a/loolwsd/Storage.cpp
+++ b/loolwsd/Storage.cpp
@@ -364,7 +364,7 @@ bool WopiStorage::saveLocalFileToStorage()
     std::unique_ptr<Poco::Net::HTTPClientSession> psession(getHTTPClientSession(uriObject));
 
     Poco::Net::HTTPRequest request(Poco::Net::HTTPRequest::HTTP_POST, uriObject.getPathAndQuery(), Poco::Net::HTTPMessage::HTTP_1_1);
-    request.set("X-WOPIOverride", "PUT");
+    request.set("X-WOPI-Override", "PUT");
     request.setContentType("application/octet-stream");
     request.setContentLength(size);
 


More information about the Libreoffice-commits mailing list