-
-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: HTtpListenerRequest.get_Boundary ( Fixes #1114 )
Also, simplifying directory tree
- Loading branch information
James Brundage
committed
May 4, 2024
1 parent
a3477d8
commit 9d7a9f8
Showing
8 changed files
with
16 additions
and
0 deletions.
There are no files selected for viewing
File renamed without changes.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
File renamed without changes.
File renamed without changes.
File renamed without changes.