Exit after printing http headers if request method is HEAD.
This commit is contained in:
parent
301331f63f
commit
2c21ba4ae7
1 changed files with 2 additions and 0 deletions
|
|
@ -1,5 +1,7 @@
|
|||
% for(h in $extraHttpHeaders) echo $h
|
||||
Content-Type: text/html
|
||||
% if(~ $REQUEST_METHOD HEAD)
|
||||
% exit
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue