Browse Source

Change header required for email sending to 'MAIL'

This seems to be the preferred style for headers
mario forzanini 2 years ago
parent
commit
211400b69f
1 changed files with 1 additions and 1 deletions
  1. 1 1
      lcmlog-server

+ 1 - 1
lcmlog-server

@@ -72,7 +72,7 @@ def main():
 				send_mail = input()
 				auth(user_id, "POST", kind)     # Check if the user can post for the requested kind
 				log = sys.stdin.read() # Read the log content
-				method_post(kind, user_name, date, tags, log, send_mail == "Yes")
+				method_post(kind, user_name, date, tags, log, send_mail == "MAIL")
 			elif method == "GET":
 				auth(user_id, "GET", kind)	# Check if the user can get logs for the requested kind
 				user_to_find = input() # Read the user name of the log writer to search