Skip to content

Commit

Permalink
feat: HTtpListenerRequest.get_Boundary ( Fixes #1114 )
Browse files Browse the repository at this point in the history
Also, simplifying directory tree
  • Loading branch information
James Brundage committed May 4, 2024
1 parent a3477d8 commit 9d7a9f8
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 0 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
16 changes: 16 additions & 0 deletions Types/HttpListener/Request/get_Boundary.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<#
.SYNOPSIS
Gets the boundary for a multipart request.
.DESCRIPTION
Extracts the boundary from the Content-Type header of a multipart request.
This boundary is used to separate the different parts of the request.
.LINK
https://www.w3.org/Protocols/rfc1341/7_2_Multipart.html
#>

if ($this.ContentType -match 'multipart.+?;') {
@(@($this.ContentType -split ';')[1] -split '=')[1]
} else {
""
}
File renamed without changes.

0 comments on commit 9d7a9f8

Please sign in to comment.