Incomplete method set, Decided to just throw an unsupported error

This commit is contained in:
rimuspp 2024-01-23 13:53:28 -05:00
parent 885037646e
commit 7e529e2c55
No known key found for this signature in database
GPG Key ID: 6DB0BA3ACC67DBC7

View File

@ -35,6 +35,7 @@ pub fn init(
.CONNECT => Method.CONNECT,
.OPTIONS => Method.OPTIONS,
.TRACE => Method.TRACE,
_ => return error.jetzig_unsupported_http_method,
};
var it = std.mem.splitScalar(u8, response.request.target, '/');