diff --git a/example/d-form/README.md b/example/d-form/README.md index fb646cb9..44a1ff43 100644 --- a/example/d-form/README.md +++ b/example/d-form/README.md @@ -59,7 +59,7 @@ a CSRF token into it using the generate the `` tag. ```html -
+ diff --git a/example/w-upload-stream/README.md b/example/w-upload-stream/README.md index e7d8b5a7..4868a3dc 100644 --- a/example/w-upload-stream/README.md +++ b/example/w-upload-stream/README.md @@ -11,7 +11,7 @@ the total size of each uploaded file: let home request = - + <%s! Dream.csrf_tag request %> diff --git a/example/w-upload-stream/upload_stream.eml.ml b/example/w-upload-stream/upload_stream.eml.ml index ca9cf4cf..e6d086f9 100644 --- a/example/w-upload-stream/upload_stream.eml.ml +++ b/example/w-upload-stream/upload_stream.eml.ml @@ -1,7 +1,7 @@ let home request = - + <%s! Dream.csrf_tag request %> diff --git a/src/dream.mli b/src/dream.mli index f265c7a6..51fa0b11 100644 --- a/src/dream.mli +++ b/src/dream.mli @@ -1001,7 +1001,7 @@ val origin_referrer_check : middleware with a CSRF token: {[ - + <%s! Dream.csrf_tag request %>
@@ -1137,7 +1137,7 @@ val multipart : ?csrf:bool -> request -> multipart_form form_result promise [multipart/form-data]. The CSRF token can be generated in a template with {[ -
+ <%s! Dream.csrf_tag request %> ]} @@ -1320,7 +1320,7 @@ val csrf_tag : request -> string {!Dream.val-form} and {!Dream.val-multipart}. For example, in a template, {[ - + <%s! Dream.csrf_tag request %>
@@ -1329,7 +1329,7 @@ val csrf_tag : request -> string expands to {[ -
+