-
Notifications
You must be signed in to change notification settings - Fork 7
Fix for latest Gerbil v0.18.1-163-ge55e0806 #6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -53,7 +53,7 @@ | |
| (default-handler req res)) | ||
| (catch (e) (http-response-write | ||
| res 500 '(("Content-Type" . "text/plain")) | ||
| (with-output-to-string (cut display-exception e)))))) | ||
| (with-output-to-string "" (cut display-exception e)))))) | ||
| (def eq (endpoint-queue)) | ||
|
|
||
| (def (test-endpoint-queue-handler req res) | ||
|
|
@@ -62,7 +62,7 @@ | |
| (default-handler req res)) | ||
| (catch (e) (http-response-write | ||
| res 500 '(("Content-Type" . "text/plain")) | ||
| (with-output-to-string (cut display-exception e)))))) | ||
| (with-output-to-string "" (cut display-exception e)))))) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. same here. |
||
|
|
||
| (def (testq/GET num arg) | ||
| (http-response-write* 200 '(("Content-Type" . "text/plain")) | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -620,7 +620,7 @@ dispatcher function attached which returns a true value if successful. | |
| (default-handler req res)) | ||
| (catch (e) (http-response-write | ||
| res 500 '(("Content-Type" . "text/plain")) | ||
| (with-output-to-string (cut display-exception e)))))) | ||
| (with-output-to-string "" (cut display-exception e)))))) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. and here |
||
|
|
||
| (def (testq/GET num arg) | ||
| (http-response-write* 200 '(("Content-Type" . "text/plain")) | ||
|
|
@@ -773,7 +773,8 @@ request. | |
|
|
||
| #+begin_src gerbil | ||
| (defmethod {endpoint-match-predicate endpoint} | ||
| (lambda (self (m (endpoint-match self))) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. uhm, this should work though, needs to be fixed in gerbil. |
||
| (lambda (self (m #f)) | ||
| (unless m (set! m (endpoint-match self))) | ||
| (cond ((string? m) (endpoint-pregexp-match-predicate self)) | ||
| ((procedure? m) m) | ||
| (#t (error "Endpoint Match is not a string or a procedure"))))) | ||
|
|
@@ -882,7 +883,7 @@ Now a simple handler to register with the existing mux. | |
| (default-handler req res)) | ||
| (catch (e) (http-response-write | ||
| res 500 '(("Content-Type" . "text/plain")) | ||
| (with-output-to-string (cut display-exception e)))))) | ||
| (with-output-to-string "" (cut display-exception e)))))) | ||
| #+end_src | ||
| Let's make sure it works! | ||
|
|
||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it is too type restrictive it should be fixed in gerbil