@@ -70,7 +70,7 @@ pub struct HyperServerOptions {
70
70
/// Optional thread-safe session id generator to generate unique session IDs.
71
71
pub session_id_generator : Option < Arc < dyn IdGenerator > > ,
72
72
/// If set to true, the SSE transport will also be supported for backward compatibility (default: true)
73
- pub supprt_sse : Option < bool > ,
73
+ pub support_sse : Option < bool > ,
74
74
/// List of allowed host header values for DNS rebinding protection.
75
75
/// If not specified, host validation is disabled.
76
76
pub allowed_hosts : Option < Vec < String > > ,
@@ -206,7 +206,7 @@ impl Default for HyperServerOptions {
206
206
ssl_key_path : None ,
207
207
session_id_generator : None ,
208
208
enable_json_response : None ,
209
- supprt_sse : Some ( true ) ,
209
+ support_sse : Some ( true ) ,
210
210
allowed_hosts : None ,
211
211
allowed_origins : None ,
212
212
dns_rebinding_protection : false ,
@@ -316,7 +316,7 @@ impl HyperServer {
316
316
self . options. streamable_http_endpoint( )
317
317
) ;
318
318
319
- if self . options . supprt_sse . unwrap_or_default ( ) {
319
+ if self . options . support_sse . unwrap_or_default ( ) {
320
320
let sse_url = format ! (
321
321
"\n • SSE {} is available at {}://{}{}" ,
322
322
server_type,
0 commit comments