From f5b13329cae27827a1b3b1fba6252ed82b4f0f58 Mon Sep 17 00:00:00 2001 From: Steffen Busch Date: Sun, 27 Apr 2025 11:32:18 +0200 Subject: [PATCH] reivew comments, don't escape closing } (not necessary), space2tabs --- src/docs/markdown/caddyfile/directives/request_body.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/docs/markdown/caddyfile/directives/request_body.md b/src/docs/markdown/caddyfile/directives/request_body.md index a4e9cfb..e25cd26 100644 --- a/src/docs/markdown/caddyfile/directives/request_body.md +++ b/src/docs/markdown/caddyfile/directives/request_body.md @@ -17,7 +17,7 @@ request_body [] { - **max_size** is the maximum size in bytes allowed for the request body. It accepts all size values supported by [go-humanize](https://pkg.go.dev/github.com/dustin/go-humanize#pkg-constants). Reads of more bytes will return an error with HTTP status `413`. -⚠️ Experimental | v2.10.x+ +⚠️ Experimental | v2.10.0+ - **set** allows setting the request body to specific content. The content can include placeholders to dynamically insert data. ## Examples @@ -39,7 +39,7 @@ Set the request body with a JSON structure containing a SQL query: example.com { handle /jazz { request_body { - set `\{"statementText":"SELECT name, genre, debut_year FROM artists WHERE genre = 'Jazz'"\}` + set `\{"statementText":"SELECT name, genre, debut_year FROM artists WHERE genre = 'Jazz'"}` } reverse_proxy localhost:8080 { @@ -47,6 +47,6 @@ example.com { method POST rewrite * /execute-sql } - } + } } ```