Skip to content

Commit

Permalink
FIX: updated for compatibility with the new map syntax introduced in …
Browse files Browse the repository at this point in the history
…Rebol 3.16.0
  • Loading branch information
Oldes committed Jun 4, 2024
1 parent 27f6056 commit 1d58202
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Install Rebol for the test
uses: oldes/install-rebol@v3.15.0
uses: oldes/install-rebol@v3.17.0
with:
product: Bulk

Expand Down
14 changes: 7 additions & 7 deletions httpd.reb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ Rebol [
Title: "HTTPd Scheme"
Type: module
Name: httpd
Date: 1-Jan-2024
Version: 0.9.1
Date: 4-Jun-2024
Version: 0.9.2
Author: ["Andreas Bolka" "Christopher Ross-Gill" "Oldes"]
Exports: [serve-http http-server decode-target to-CLF-idate]
Home: https://github.com/Oldes/Rebol-HTTPd
Expand Down Expand Up @@ -216,11 +216,11 @@ sys/make-scheme [
clients: make block! 16
]
subport/extra/config:
config: make map! [
root: #[none]
config: make map! reduce/no-set [
root: none
index: [%index.html %index.htm]
keep-alive: #[true]
list-dir?: #[true]
keep-alive: true
list-dir?: true
server-name: "Rebol3-HTTPd"
]
]
Expand Down Expand Up @@ -618,7 +618,7 @@ sys/make-scheme [
]

Awake-Client: wrap [
chars-method: #[bitset! #{00000000000000007FFFFFE0}] ; #"A" - #"Z"
chars-method: charset [#"A" - #"Z"]
;from-method: ["GET" | "POST" | "HEAD" | "PUT" | "DELETE" | "TRACE" | "CONNECT" | "OPTIONS"]
chars: complement union space: charset " " charset [#"^@" - #"^_"]
CRLF2BIN: #{0D0A0D0A}
Expand Down
3 changes: 2 additions & 1 deletion server-test.r3
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ Rebol [
Date: 14-Dec-2023
Author: "Oldes"
Version: 0.9.0
Needs: 3.16.0
Note: {
To test POST method from Rebol console, try this:
```
Expand Down Expand Up @@ -40,7 +41,7 @@ serve-http [
keep-alive: [30 100] ;= [timeout max-requests] or FALSE to turn it off
log-access: %logs/test-access.log
log-errors: %logs/test-errors.log
list-dir?: #[true]
list-dir?: #(true)
;- Server's actor functions
actor: [
On-Accept: func [info [object!]][
Expand Down

0 comments on commit 1d58202

Please sign in to comment.