diff options
author | Robin Appelman <robin@icewind.nl> | 2022-04-07 15:27:25 +0300 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2022-04-13 15:21:12 +0300 |
commit | dc31bc6e5586def26a4d82fbbe671359d488b00c (patch) | |
tree | 209419f50ed893793458b1eaed3ed81db71695ed /lib/Scanner | |
parent | fdc489e680be35ab4a90917de31fa5242a3b856b (diff) |
make icap request headers a bit nicer
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'lib/Scanner')
-rw-r--r-- | lib/Scanner/ICAP.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/Scanner/ICAP.php b/lib/Scanner/ICAP.php index 442ac6a..5402a25 100644 --- a/lib/Scanner/ICAP.php +++ b/lib/Scanner/ICAP.php @@ -60,7 +60,10 @@ class ICAP extends ScannerBase { $this->writeHandle = fopen("php://temp", 'w+'); $this->request = $this->icapClient->reqmod($this->service, [ 'Allow' => 204, - ], "PUT / HTTP/1.0\r\nHost: 127.0.0.1\r\n\r\n"); + ], [ + "PUT / HTTP/1.0", + "Host: 127.0.0.1" + ]); } protected function writeChunk($chunk) { |