File tree Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Expand file tree Collapse file tree 3 files changed +13
-6
lines changed Original file line number Diff line number Diff line change 16
16
- swift:5.2.5-xenial
17
17
- swift:5.3.2-xenial
18
18
- swift:5.3.2-bionic
19
+ - swift:5.5.0-focal
19
20
container : ${{ matrix.image }}
20
21
steps :
21
22
- name : Checkout Repository
30
31
- name : Select latest available Xcode
31
32
uses :
maxim-lobanov/[email protected]
32
33
with :
33
- xcode-version : 12.2
34
+ xcode-version : 13
34
35
- name : Checkout Repository
35
36
uses : actions/checkout@v2
36
37
- name : Build Swift Debug Package
Original file line number Diff line number Diff line change 3
3
import PackageDescription
4
4
5
5
let package = Package (
6
-
6
+
7
7
name: " MacroExamples " ,
8
8
9
9
platforms: [
@@ -25,11 +25,11 @@ let package = Package(
25
25
// A lot of packages for demonstration purposes, only add what you
26
26
// actually need in your own project.
27
27
. package ( url: " https://github.com/Macro-swift/Macro.git " ,
28
- from: " 0.8.10 " ) ,
28
+ from: " 0.8.11 " ) ,
29
29
. package ( url: " https://github.com/Macro-swift/MacroExpress.git " ,
30
- from: " 0.8.6 " ) ,
30
+ from: " 0.8.8 " ) ,
31
31
. package ( url: " https://github.com/Macro-swift/MacroLambda.git " ,
32
- from: " 0.4.0 " ) ,
32
+ from: " 0.4.1 " ) ,
33
33
. package ( url: " https://github.com/AlwaysRightInstitute/cows " ,
34
34
from: " 1.0.7 " )
35
35
] ,
Original file line number Diff line number Diff line change @@ -7,6 +7,12 @@ http.createServer { req, res in
7
7
// log request
8
8
req. log. log ( " \( req. method) \( req. url) " )
9
9
10
+ guard req. method != " CONNECT " else {
11
+ req. log. error ( " Connect not supported. " )
12
+ res. writeHead ( 501 )
13
+ res. end ( )
14
+ return
15
+ }
10
16
guard let url = URL ( string: req. url) ,
11
17
let scheme = url. scheme, let host = url. host else
12
18
{
@@ -42,7 +48,7 @@ http.createServer { req, res in
42
48
}
43
49
44
50
// Send the request body to the target server
45
- _ = req. pipe ( proxiedRequest)
51
+ req. pipe ( proxiedRequest)
46
52
}
47
53
. listen ( 1337 ) { server in
48
54
server. log. log ( " Server listening on http://0.0.0.0:1337/ " )
You can’t perform that action at this time.
0 commit comments