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 @@ -183,24 +183,6 @@ pub fn get_client_agent(
183183 Ok ( for_agent)
184184}
185185
186- /// Finds the extension
187- pub fn try_extension ( path : & str ) -> Option < ( ContentType , & str ) > {
188- let items: Vec < & str > = path. split ( '.' ) . collect ( ) ;
189- if items. len ( ) == 2 {
190- let path = items[ 0 ] ;
191- let content_type = match items[ 1 ] {
192- "json" => ContentType :: Json ,
193- "jsonld" => ContentType :: JsonLd ,
194- "jsonad" => ContentType :: JsonAd ,
195- "html" => ContentType :: Html ,
196- "ttl" => ContentType :: Turtle ,
197- _ => return None ,
198- } ;
199- return Some ( ( content_type, path) ) ;
200- }
201- None
202- }
203-
204186fn session_cookies_from_header ( header : & HeaderValue ) -> AtomicServerResult < Vec < String > > {
205187 let cookies: Vec < & str > = header
206188 . to_str ( )
You can’t perform that action at this time.
0 commit comments