when in Gogs > 0.10.x the secret is not set, the X-Gogs-Signature is empty. So only do an optional check if it exists in the body to prevent an Exception ( javax.servlet.ServletException: net.sf.json.JSONException: JSONObject["secret"] not found. ) when not found in the body
This is to fix #18
when in Gogs > 0.10.x the secret is not set, the X-Gogs-Signature is empty. So only do an optional check if it exists in the body to prevent an Exception ( javax.servlet.ServletException: net.sf.json.JSONException: JSONObject["secret"] not found. ) when not found in the body This is to fix #18