File tree Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Expand file tree Collapse file tree 2 files changed +2
-20
lines changed Original file line number Diff line number Diff line change @@ -93,11 +93,11 @@ pub struct Opts {
9393 #[ clap( value_enum, long, env = "ATOMIC_TRACING" , default_value = "stdout" ) ]
9494 pub trace : Tracing ,
9595
96- /// Add this if you want so send e-mails (e.g. on user registration)
96+ /// Host address of an SMTP server. Add if you want so send e-mails (e.g. for user registration). Also set the port.
9797 #[ clap( long, env = "ATOMIC_SMTP_HOST" ) ]
9898 pub smpt_host : Option < String > ,
9999
100- /// Useful for debugging e-mails during development, or if your SMTP server has an unconventional port number .
100+ /// Port of your SMTP server.
101101 #[ clap( long, env = "ATOMIC_SMTP_PORT" , default_value = "25" ) ]
102102 pub smpt_port : u16 ,
103103
Original file line number Diff line number Diff line change @@ -161,24 +161,6 @@ pub fn get_client_agent(
161161 Ok ( Some ( for_agent) )
162162}
163163
164- /// Finds the extension
165- pub fn try_extension ( path : & str ) -> Option < ( ContentType , & str ) > {
166- let items: Vec < & str > = path. split ( '.' ) . collect ( ) ;
167- if items. len ( ) == 2 {
168- let path = items[ 0 ] ;
169- let content_type = match items[ 1 ] {
170- "json" => ContentType :: Json ,
171- "jsonld" => ContentType :: JsonLd ,
172- "jsonad" => ContentType :: JsonAd ,
173- "html" => ContentType :: Html ,
174- "ttl" => ContentType :: Turtle ,
175- _ => return None ,
176- } ;
177- return Some ( ( content_type, path) ) ;
178- }
179- None
180- }
181-
182164fn session_cookies_from_header ( header : & HeaderValue ) -> AtomicServerResult < Vec < String > > {
183165 let cookies: Vec < & str > = header
184166 . to_str ( )
You can’t perform that action at this time.
0 commit comments