Skip to content
This repository was archived by the owner on Dec 8, 2021. It is now read-only.

Commit c70cb2c

Browse files
Fix #171: Unable to send empty body (#182)
* Fixes for #171 * Cleaning up extra whitespaces * Cleaning up semi-colons for consistency * Revert "Cleaning up semi-colons for consistency" This reverts commit 6d6c8a8. * Cleaning up random semi-colons * Adding back in the C# semi-colons 😓
1 parent a0117af commit c70cb2c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+243
-204
lines changed

.github/ISSUE_TEMPLATE/RFC.md

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
---
2-
name: Request For Comment
3-
about: Used for proposing breaking changes. See CONTRIBUTING.md for more information.
4-
5-
---
6-
7-
# RFC #[Insert RFC number here]
8-
9-
We would like to avoid making breaking changes where possible. Any time you need to make modifications to an end-to-end test or a unit test you are breaking the contract of functionality developers expect from Polaris and it is classified as a breaking change. If you feel a breaking change needs to happen or should be proposed we will use the following process:
10-
11-
Breaking changes should be proposed in an issue labled RFC ###.
12-
The RFC should sit available for review and comment by the community for at least two weeks before a pull request corresponding to the change can be merged.
13-
The description of the breaking change and the new version number should be added to Breaking-Changes.md for in the pull request for future record.
14-
Not everyone checks Github every day, get some visibility to the RFC by announcing it in powershell.slack.com and/or twitter.
15-
16-
## RFC Checklist (You can remove this or leave it at the bottom of the RFC)
17-
18-
See [RFC 001](https://github.com/PowerShell/Polaris/issues/120) for a sample.
19-
20-
- [ ] Added RFC lable to Github Issue
21-
- [ ] Title matches format **RFC #xxx: Description**
22-
- [ ] Full description of exactly what the breaking changes will be
23-
- [ ] Full description of why the change will be valuable
24-
- [ ] Code samples (before and after changes)
1+
---
2+
name: Request For Comment
3+
about: Used for proposing breaking changes. See CONTRIBUTING.md for more information.
4+
5+
---
6+
7+
# RFC #[Insert RFC number here]
8+
9+
We would like to avoid making breaking changes where possible. Any time you need to make modifications to an end-to-end test or a unit test you are breaking the contract of functionality developers expect from Polaris and it is classified as a breaking change. If you feel a breaking change needs to happen or should be proposed we will use the following process:
10+
11+
Breaking changes should be proposed in an issue labled RFC ###.
12+
The RFC should sit available for review and comment by the community for at least two weeks before a pull request corresponding to the change can be merged.
13+
The description of the breaking change and the new version number should be added to Breaking-Changes.md for in the pull request for future record.
14+
Not everyone checks Github every day, get some visibility to the RFC by announcing it in powershell.slack.com and/or twitter.
15+
16+
## RFC Checklist (You can remove this or leave it at the bottom of the RFC)
17+
18+
See [RFC 001](https://github.com/PowerShell/Polaris/issues/120) for a sample.
19+
20+
- [ ] Added RFC lable to Github Issue
21+
- [ ] Title matches format **RFC #xxx: Description**
22+
- [ ] Full description of exactly what the breaking changes will be
23+
- [ ] Full description of why the change will be valuable
24+
- [ ] Code samples (before and after changes)

.github/pull_request_template.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55
- [ ] Added a link to the related Github issue in the description (i.e. type `Fixes #XXX` in the desciption of the PR)
66
- [ ] If you are still working on the code and would like some early feedback via the Pull Request process just add [WIP] to the beginning of your Pull Request title
77
- [ ] Checked the [Polaris GitHub workflow guidance](/GITHUB_GUIDANCE.md) to make sure my code has the latest changes made to the master branch
8-
- [ ] Throw small party 🎉
8+
- [ ] Throw small party 🎉

CONTRIBUTING.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ There are a couple of ways you can help us out.
88

99
## Issues
1010
### Standard issues
11-
Opening issues is very easy. Head to our [Issues tab](https://github.com/automatedlab/automatedlab/issues) and open one if it does not exist already. If an issue exists that might have something to do with yours, e.g. is the basis for something your are requesting, please link this issue to yours.
11+
Opening issues is very easy. Head to our [Issues tab](https://github.com/automatedlab/automatedlab/issues) and open one if it does not exist already. If an issue exists that might have something to do with yours, e.g. is the basis for something your are requesting, please link this issue to yours.
1212
### Bugs, errors and catastrophies
1313
If you encounter an error during usage of Polaris, there are some basic details we need to be able to help you.
1414
1. The script you used. Feel free to strip out any incriminating details, but it must be able to be executed
@@ -27,7 +27,7 @@ We are using GitHub's internal capabilites for our code reviews. Either we, the
2727
## Breaking Changes
2828
We would like to avoid making breaking changes where possible. Any time you need to make modifications to an end-to-end test or a unit test you are breaking the contract of functionality developers expect from Polaris and it is classified as a breaking change. If you feel a breaking change needs to happen or should be proposed we will use the following process:
2929

30-
1. Breaking changes should be proposed in an issue labled RFC ###.
30+
1. Breaking changes should be proposed in an issue labled RFC ###.
3131
2. The RFC should sit available for review and comment by the community for at least **two weeks** before a pull request corresponding to the change can be merged.
3232
3. The description of the breaking change and the new version number should be added to **Breaking-Changes.md** for in the pull request for future record.
3333
4. Not everyone checks Github every day, get some visibility to the RFC by announcing it in powershell.slack.com and/or twitter.

LICENSE.txt

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,24 +2,24 @@ Polaris
22

33
Copyright (c) Microsoft Corporation
44

5-
All rights reserved.
5+
All rights reserved.
66

77
MIT License
88

9-
Permission is hereby granted, free of charge, to any person obtaining a copy
10-
of this software and associated documentation files (the ""Software""), to deal
11-
in the Software without restriction, including without limitation the rights
12-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13-
copies of the Software, and to permit persons to whom the Software is
9+
Permission is hereby granted, free of charge, to any person obtaining a copy
10+
of this software and associated documentation files (the ""Software""), to deal
11+
in the Software without restriction, including without limitation the rights
12+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
13+
copies of the Software, and to permit persons to whom the Software is
1414
furnished to do so, subject to the following conditions:
1515

16-
The above copyright notice and this permission notice shall be included in all
16+
The above copyright notice and this permission notice shall be included in all
1717
copies or substantial portions of the Software.
1818

19-
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25-
SOFTWARE.
19+
THE SOFTWARE IS PROVIDED *AS IS*, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
20+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
21+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
22+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
23+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
24+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
25+
SOFTWARE.

Polaris.psd1

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -10,40 +10,40 @@
1010

1111
# Script module or binary module file associated with this manifest.
1212
RootModule = "Polaris.psm1"
13-
13+
1414
# Version number of this module.
1515
ModuleVersion = '0.2.0'
16-
16+
1717
# Supported PSEditions
1818
CompatiblePSEditions = @('Desktop', 'Core')
19-
19+
2020
# ID used to uniquely identify this module
2121
GUID = 'd9c86d71-cda6-431e-b297-34e0560f8e30'
22-
22+
2323
# Author of this module
2424
Author = 'Microsoft Corporation'
25-
25+
2626
# Company or vendor of this module
2727
CompanyName = 'Microsoft Corporation'
28-
28+
2929
# Copyright statement for this module
3030
Copyright = '© Microsoft Corporation. All rights reserved'
31-
31+
3232
# Description of the functionality provided by this module
3333
Description = 'A cross-platform, minimalist web framework for PowerShell'
34-
34+
3535
# Minimum version of the Windows PowerShell engine required by this module
3636
PowerShellVersion = '5.1'
37-
37+
3838
# Minimum version of the common language runtime (CLR) required by this module. This prerequisite is valid for the PowerShell Desktop edition only.
3939
# CLRVersion = ''
40-
40+
4141
# Processor architecture (None, X86, Amd64) required by this module
4242
# ProcessorArchitecture = ''
43-
43+
4444
# Modules that must be imported into the global environment prior to importing this module
4545
# RequiredModules = @()
46-
46+
4747
# Script files (.ps1) that are run in the caller's environment prior to importing this module.
4848
ScriptsToProcess = @(
4949
"Public\New-ScriptblockCallback.ps1",
@@ -53,16 +53,16 @@
5353
"lib\PolarisMiddleware.Class.ps1",
5454
"lib\Polaris.Class.ps1"
5555
)
56-
56+
5757
# Type files (.ps1xml) to be loaded when importing this module
5858
# TypesToProcess = @()
59-
59+
6060
# Format files (.ps1xml) to be loaded when importing this module
6161
# FormatsToProcess = @()
62-
62+
6363
# Modules to import as nested modules of the module specified in RootModule/ModuleToProcess
6464
# NestedModules = @()
65-
65+
6666
# Functions to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no functions to export.
6767
FunctionsToExport = @(
6868
'Get-Polaris'
@@ -83,39 +83,39 @@
8383
'New-DirectoryBrowser'
8484
'Start-Polaris'
8585
'Stop-Polaris' )
86-
86+
8787
# Cmdlets to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no cmdlets to export.
8888
CmdletsToExport = @()
89-
89+
9090
# Variables to export from this module
9191
VariablesToExport = '*'
92-
92+
9393
# Aliases to export from this module, for best performance, do not use wildcards and do not delete the entry, use an empty array if there are no aliases to export.
9494
AliasesToExport = '*'
95-
95+
9696
# List of all modules packaged with this module
9797
# ModuleList = @()
98-
98+
9999
# List of all files packaged with this module
100100
# FileList = @()
101-
101+
102102
# Private data to pass to the module specified in RootModule/ModuleToProcess. This may also contain a PSData hashtable with additional module metadata used by PowerShell.
103103
PrivateData = @{
104-
104+
105105
PSData = @{
106-
106+
107107
# Tags applied to this module. These help with module discovery in online galleries.
108108
Tags = @('web','core','framework','REST')
109-
109+
110110
# A URL to the license for this module.
111111
LicenseUri = 'https://github.com/PowerShell/Polaris/blob/master/LICENSE.txt'
112-
112+
113113
# A URL to the main website for this project.
114114
ProjectUri = 'https://github.com/PowerShell/Polaris'
115-
115+
116116
# A URL to an icon representing this module.
117117
# IconUri = ''
118-
118+
119119
# ReleaseNotes of this module
120120
ReleaseNotes = @'
121121
# 0.2.0
@@ -124,15 +124,15 @@
124124
* HttpListener authentication support
125125
* misc bug fixes and improvements
126126
'@
127-
127+
128128
} # End of PSData hashtable
129-
129+
130130
} # End of PrivateData hashtable
131-
131+
132132
# HelpInfo URI of this module
133133
# HelpInfoURI = ''
134-
134+
135135
# Default prefix for commands exported from this module. Override the default prefix using Import-Module -Prefix.
136136
# DefaultCommandPrefix = ''
137-
137+
138138
}

Public/Get-PolarisRoute.ps1

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -50,10 +50,10 @@ function Get-PolarisRoute {
5050
[string[]]
5151
$Method = '*',
5252

53-
53+
5454
$Polaris = $Script:Polaris
5555
)
56-
56+
5757
process {
5858
if ( $Polaris ) {
5959
$WebRoutes = [System.Collections.ArrayList]@()
@@ -65,8 +65,8 @@ function Get-PolarisRoute {
6565
}
6666

6767
$Filter = [scriptblock]::Create( (
68-
'( ' +
69-
( $Path.ForEach( { "`$_.Path -like `"/$($_.TrimStart("/"))`"" } ) -join ' -or ' ) +
68+
'( ' +
69+
( $Path.ForEach( { "`$_.Path -like `"/$($_.TrimStart("/"))`"" } ) -join ' -or ' ) +
7070
' ) -and ( ' +
7171
( $Method.ForEach( { "`$_.Method -like `"$($_)`"" } ) -join ' -or ' ) +
7272
' )' ) )

Public/Get-PolarisRouteMiddleware.ps1

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ function Get-PolarisRouteMiddleware {
3232
[string[]]
3333
$Name = '*',
3434

35-
35+
3636
$Polaris = $Script:Polaris
3737
)
3838

Public/New-PolarisDeleteRoute.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function New-PolarisDeleteRoute {
4444
[Parameter( Mandatory = $True, ParameterSetName = 'ScriptPath' )]
4545
[string]
4646
$ScriptPath,
47-
47+
4848
[switch]
4949
$Force,
5050

51-
51+
5252
$Polaris = $Script:Polaris
5353
)
5454

Public/New-PolarisGetRoute.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function New-PolarisGetRoute {
4444
[Parameter( Mandatory = $True, ParameterSetName = 'ScriptPath' )]
4545
[string]
4646
$ScriptPath,
47-
47+
4848
[switch]
4949
$Force,
5050

51-
51+
5252
$Polaris = $Script:Polaris
5353
)
5454

Public/New-PolarisPostRoute.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,11 +44,11 @@ function New-PolarisPostRoute {
4444
[Parameter( Mandatory = $True, ParameterSetName = 'ScriptPath' )]
4545
[string]
4646
$ScriptPath,
47-
47+
4848
[switch]
4949
$Force,
5050

51-
51+
5252
$Polaris = $Script:Polaris
5353
)
5454

0 commit comments

Comments
 (0)