summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index 07143fa..bb81ca1 100644
--- a/README.md
+++ b/README.md
@@ -14,7 +14,7 @@ functionality is exposed to the command line by the Unix command
>>> import magic
>>> magic.from_file("testdata/test.pdf")
'PDF document, version 1.2'
->>> magic.from_buffer(open("testdata/test.pdf").read(1024))
+>>> magic.from_buffer(open("testdata/test.pdf").read(2048)) # use at least 2048 bytes here for safe detection of for example "xslx" files
'PDF document, version 1.2'
>>> magic.from_file("testdata/test.pdf", mime=True)
'application/pdf'