File tree Expand file tree Collapse file tree 4 files changed +15
-4
lines changed
TestPackages/swift-malibu/Sources/BarbieCore/documentation Expand file tree Collapse file tree 4 files changed +15
-4
lines changed Original file line number Diff line number Diff line change @@ -314,7 +314,8 @@ extension HTTP.ServerLoop
314
314
switch h1. method
315
315
{
316
316
case . HEAD:
317
- return . resource( " Method not allowed " , status: 405 )
317
+ // return .resource("Method not allowed", status: 405)
318
+ fallthrough
318
319
319
320
case . GET:
320
321
if let request: IntegralRequest = . init( get: h1. uri,
@@ -460,7 +461,8 @@ extension HTTP.ServerLoop
460
461
switch method
461
462
{
462
463
case " HEAD " :
463
- return . resource( " Method not allowed " , status: 405 )
464
+ // return .resource("Method not allowed", status: 405)
465
+ fallthrough
464
466
465
467
case " GET " :
466
468
if let request: IntegralRequest = . init( get: path,
Original file line number Diff line number Diff line change @@ -277,6 +277,9 @@ extension Swiftinit.AdminPage:Swiftinit.AdministrativePage
277
277
278
278
$0 [ . dt] = " IP address "
279
279
$0 [ . dd] = " \( last. address) "
280
+
281
+ $0 [ . dt] = " Accept Language "
282
+ $0 [ . dd] = last. headers. acceptLanguage ?? " none "
280
283
}
281
284
if let last: ServerTour . Request = self . tour. lastRequest
282
285
{
@@ -290,6 +293,9 @@ extension Swiftinit.AdminPage:Swiftinit.AdministrativePage
290
293
291
294
$0 [ . dt] = " IP address "
292
295
$0 [ . dd] = " \( last. address) "
296
+
297
+ $0 [ . dt] = " Accept Language "
298
+ $0 [ . dd] = last. headers. acceptLanguage ?? " none "
293
299
}
294
300
295
301
if let query: ServerTour . SlowestQuery = self . tour. slowestQuery
Original file line number Diff line number Diff line change @@ -71,8 +71,7 @@ extension Swiftinit.ClientAnnotation
71
71
return . robot( . tool)
72
72
}
73
73
74
- if case " * " ? = headers. acceptLanguage,
75
- agent. starts ( with: " Discourse Forum Onebox " )
74
+ if agent. starts ( with: " Discourse Forum Onebox " )
76
75
{
77
76
// This is *probably* the Swift Forums bot.
78
77
return . robot( . discoursebot)
Original file line number Diff line number Diff line change 2
2
3
3
This article demonstrates how to link to documentation in other modules.
4
4
5
+ Here is an external link to wikipedia: [ Wikipedia] ( https://en.wikipedia.org/wiki/Main_Page )
6
+
7
+ Here is an external link in autolink form: < https://en.wikipedia.org/wiki/Main_Page >
8
+
5
9
## Codelinks
6
10
7
11
You can link to a module with a codelink: `` BarbieCore `` .
You can’t perform that action at this time.
0 commit comments