From c590b026d64076b6eb47c67352684de18527c175 Mon Sep 17 00:00:00 2001 From: Willy Reyno Date: Mon, 1 Jun 2020 11:15:55 +0200 Subject: [PATCH] Added warning for URLRequest and service named app A docker-compose service named "app" will systematically return a blank PDF when using `URLRequest()`. Added a warning to recommend people to rename their service if it's named "app". --- docs/index.html | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/docs/index.html b/docs/index.html index 1ad30e01..54f5e121 100755 --- a/docs/index.html +++ b/docs/index.html @@ -972,7 +972,11 @@ $request->setMargins(Request::NO_MARGINS); $dest = 'result.pdf'; $client->store($request, $dest); - + +
+

Attention: If your docker-compose service is named app, you will have to rename it. URLRequest returns a blank page due to Chrome not handling http://app URL.

+
+

Custom HTTP headers

@@ -1778,4 +1782,4 @@ restart your Gotenberg instances from time to time to ensure a nominal behaviour - \ No newline at end of file +