Skip to content
This repository has been archived by the owner on Apr 5, 2020. It is now read-only.

Commit

Permalink
Fix problem delivering files with an incorrect content length
Browse files Browse the repository at this point in the history
  • Loading branch information
thekid committed Feb 12, 2016
1 parent e2fdfd0 commit 392d6ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ Scriptlets for the XP Framework ChangeLog

## ?.?.? / ????-??-??

## 7.0.1 / 2016-02-12

* Fixed problem delivering files with an incorrect content length when
file size has changed between requests
(@thekid)

## 7.0.0 / 2016-02-01

* Adjusted location of web/config help, see xp-runners/reference#32
Expand Down
1 change: 1 addition & 0 deletions src/main/php/xp/scriptlet/FileHandler.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,7 @@ public function handleRequest($method, $query, array $headers, $data, Socket $so
}
}

clearstatcache();
try {
$f->open(File::READ);
} catch (IOException $e) {
Expand Down

0 comments on commit 392d6ad

Please sign in to comment.