diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-06-22 08:24:11 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2020-07-01 07:37:10 +0200 |
commit | e68be80496e775e18edb5cbc7d3f229603fa2a2c (patch) | |
tree | f3461b6c7b3554187793d3f00885d86ad236cb01 /wsd/FileServer.cpp | |
parent | wsd: log the response from WOPI CheckFileInfo separately (diff) | |
download | online-e68be80496e775e18edb5cbc7d3f229603fa2a2c.tar.gz online-e68be80496e775e18edb5cbc7d3f229603fa2a2c.zip |
wsd: add http-headers unit-test
This is to defend the sneaking of extra http-headers
in the access_header URI param that was recently fixed.
Change-Id: Ic28cf58854847ac278bed8043f398b107f7992b3
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/96862
Tested-by: Jenkins
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'wsd/FileServer.cpp')
-rw-r--r-- | wsd/FileServer.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/wsd/FileServer.cpp b/wsd/FileServer.cpp index 3ee9e41426..fcf8531731 100644 --- a/wsd/FileServer.cpp +++ b/wsd/FileServer.cpp @@ -668,6 +668,9 @@ void FileServerRequestHandler::preprocessFile(const HTTPRequest& request, LOG_DBG("Preprocessing file: " << relPath); std::string preprocess = *getUncompressedFile(relPath); + // We need to pass certain parameters from the loleaflet html GET URI + // to the embedded document URI. Here we extract those params + // from the GET URI and set them in the generated html (see loleaflet.html.m4). HTMLForm form(request, message); const std::string accessToken = form.get("access_token", ""); const std::string accessTokenTtl = form.get("access_token_ttl", ""); |