Skip to content

Commit

Permalink
PoSHServer v3.7
Browse files Browse the repository at this point in the history
New release - v3.7
  • Loading branch information
yusufozturk committed Apr 20, 2014
1 parent d399859 commit da58716
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 2 deletions.
Binary file modified modules/PoSHServer/PoSHServer.ps1
Binary file not shown.
Binary file modified modules/PoSHServer/PoSHServer.psd1
Binary file not shown.
18 changes: 16 additions & 2 deletions modules/PoSHServer/modules/functions.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -345,8 +345,22 @@ param (
.mpg {"video/mpeg"}
.mpeg {"video/mpeg"}
.mp3 {"audio/mpeg"}
.oga {"audio/ogg"}
.spx {"audio/ogg"}
.mp4 {"video/mp4"}
.m4v {"video/m4v"}
.ogg {"video/ogg"}
.ogv {"video/ogg"}
.webm {"video/webm"}
.wmv {"video/x-ms-wmv"}
.woff {"application/x-font-woff"}
.eot {"application/vnd.ms-fontobject"}
.svg {"image/svg+xml"}
.svgz {"image/svg+xml"}
.otf {"font/otf"}
.ttf {"application/x-font-ttf"}
.xht {"application/xhtml+xml"}
.xhtml {"application/xhtml+xml"}
default {"text/html"}
}
}
Expand Down Expand Up @@ -536,10 +550,10 @@ param (
{
$PostName = $PostName.Substring(0,$PostName.Length-2)

if (!$Properties."$PostName")
if (!(New-Object PSObject -Property @{PostName=@()}).PostName)
{
$Properties | Add-Member NoteProperty $Postname (@())
$Properties."$PostName" = $PostValue
$Properties."$PostName" += $PostValue
}
else
{
Expand Down
Binary file modified packages/PoSHServer-Standalone.exe
Binary file not shown.
Binary file modified packages/PoSHServer-Standalone.ps1
Binary file not shown.

0 comments on commit da58716

Please sign in to comment.