Commit 70342181 authored by Wei Shoulin's avatar Wei Shoulin
Browse files

get fits header

parent 7c3a3f05
...@@ -16,6 +16,8 @@ def get_header_value(key: str, headers, default_value = None): ...@@ -16,6 +16,8 @@ def get_header_value(key: str, headers, default_value = None):
return ret_value.strip() return ret_value.strip()
if ret_value is None: if ret_value is None:
return default_value return default_value
else:
return ret_value
except Exception as e: except Exception as e:
return default_value return default_value
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment