# HG changeset patch # User Matthew Wild # Date 1620485481 -3600 # Node ID c149edb37349dcb3d733fcabc5335270c4413fe0 # Parent 1e70538e4641797e3f6e450d2efc8396a66d32a8 Fix mentions of 'Content-Size' (should be Content-Length) (thanks Roobre) diff -r 1e70538e4641 -r c149edb37349 mod_http_upload_external/README.markdown --- a/mod_http_upload_external/README.markdown Wed Apr 28 08:22:47 2021 +0200 +++ b/mod_http_upload_external/README.markdown Sat May 08 15:51:21 2021 +0100 @@ -159,16 +159,16 @@ The token will be in the URL query parameter 'v2'. If it is absent, fail with 403 Forbidden. -| Input | Example |Read from | -|:--------------|:------------|:--------------------------------------------------------------------| -|`file_path` | foo/bar.jpg | The URL of the PUT request, with the service's base prefix removed. | -|`content_size` | 1048576 | Content-Size header | -|`content_type` | image/jpeg | Content-Type header | +| Input | Example |Read from | +|:----------------|:------------|:--------------------------------------------------------------------| +|`file_path` | foo/bar.jpg | The URL of the PUT request, with the service's base prefix removed. | +|`content_length` | 1048576 | Content-Length header | +|`content_type` | image/jpeg | Content-Type header | The parameters should be joined into a single string, separated by NUL bytes (`\0`): ``` - signed_string = ( file_path + '\0' + content_size + '\0' + content_type ) + signed_string = ( file_path + '\0' + content_length + '\0' + content_type ) ``` ```